Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Commit 140f037

Browse files
committed
fix typos and add missing docstrings
1 parent 5373612 commit 140f037

File tree

7 files changed

+8
-1
lines changed

7 files changed

+8
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Codelabs begin with a "START" code base then walks developers through that migra
2121

2222
## Cost
2323

24-
App Engine is not a free service. While you may not have needed to enable billing in App Engine's early days, [all applications now require an active billing account](https://cloud.google.com/appengine/docs/standard/payment-instrument) backed by a financial instrument (usually a credit card). Don't worry, App Engine (and other GCP products) still have an ["Always Free" tier](https://cloud.google.com/free/docs/gcp-free-tier#always-free), and as long as you stay within those limits, you won't incur billing. Also check the App Engine [pricing](https://cloud.google.com/appengine/pricing) and [quotas](https://cloud.google.com/appengine/code quotas) pages for more information.
24+
App Engine is not a free service. While you may not have needed to enable billing in App Engine's early days, [all applications now require an active billing account](https://cloud.google.com/appengine/docs/standard/payment-instrument) backed by a financial instrument (usually a credit card). Don't worry, App Engine (and other GCP products) still have an ["Always Free" tier](https://cloud.google.com/free/docs/gcp-free-tier#always-free), and as long as you stay within those limits, you won't incur billing. Also check the App Engine [pricing](https://cloud.google.com/appengine/pricing) and [quotas](https://cloud.google.com/appengine/quotas) pages for more information.
2525

2626

2727
## Why

mod0-baseline/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
from google.appengine.ext.webapp import template
1919

2020
class Visit(ndb.Model):
21+
'Visit entity registers visitor IP address & timestamp'
2122
visitor = ndb.StringProperty()
2223
timestamp = ndb.DateTimeProperty(auto_now_add=True)
2324

2425
def store_visit(remote_addr, user_agent):
26+
'create new Visit entity in Datastore'
2527
Visit(visitor='{}: {}'.format(remote_addr, user_agent)).put()
2628

2729
def fetch_visits(limit):

mod1-framework/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
app = Flask(__name__)
1919

2020
class Visit(ndb.Model):
21+
'Visit entity registers visitor IP address & timestamp'
2122
visitor = ndb.StringProperty()
2223
timestamp = ndb.DateTimeProperty(auto_now_add=True)
2324

mod2a-cloudndb/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
ds_client = ndb.Client()
2020

2121
class Visit(ndb.Model):
22+
'Visit entity registers visitor IP address & timestamp'
2223
visitor = ndb.StringProperty()
2324
timestamp = ndb.DateTimeProperty(auto_now_add=True)
2425

mod2b-cloudndb/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
ds_client = ndb.Client()
2020

2121
class Visit(ndb.Model):
22+
'Visit entity registers visitor IP address & timestamp'
2223
visitor = ndb.StringProperty()
2324
timestamp = ndb.DateTimeProperty(auto_now_add=True)
2425

mod7-gaetasks/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
app = Flask(__name__)
2323

2424
class Visit(ndb.Model):
25+
'Visit entity registers visitor IP address & timestamp'
2526
visitor = ndb.StringProperty()
2627
timestamp = ndb.DateTimeProperty(auto_now_add=True)
2728

mod8-cloudtasks/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
QUEUE_PATH = ts_client.queue_path(PROJECT_ID, REGION_ID, QUEUE_NAME)
3030

3131
class Visit(ndb.Model):
32+
'Visit entity registers visitor IP address & timestamp'
3233
visitor = ndb.StringProperty()
3334
timestamp = ndb.DateTimeProperty(auto_now_add=True)
3435

0 commit comments

Comments
 (0)