Skip to content

Commit faf75fc

Browse files
committed
remove google crawling for custom profiles
1 parent 6bc83b2 commit faf75fc

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

private/scripts/google_index/add_to_google.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
(atable.registration_key == "") & \
4747
(atable.id > last_user_id)
4848
rows = db(query).select(orderby=~atable.id,
49-
limitby=(0, 100))
49+
limitby=(0, 200))
5050

5151
if len(rows) > 0:
5252
current.REDIS_CLIENT.set("last_user_id_submitted_to_google",
@@ -59,20 +59,3 @@
5959
response, content = http.request(ENDPOINT, method="POST", body=content)
6060
print response, content
6161
time.sleep(1)
62-
63-
last_custom_user_id = current.REDIS_CLIENT.get("last_custom_user_id_submitted_to_google")
64-
last_custom_user_id = 0 if last_custom_user_id is None else int(last_custom_user_id)
65-
66-
rows = db(cftable.id > last_custom_user_id).select(orderby=~cftable.id,
67-
limitby=(0, 50))
68-
if len(rows) > 0:
69-
current.REDIS_CLIENT.set("last_custom_user_id_submitted_to_google",
70-
rows.first().id)
71-
72-
for row in rows:
73-
url = "https://www.stopstalk.com/user/profile/%s" % row.stopstalk_handle
74-
content = "{\"url\": \"%s\", \"type\": \"URL_UPDATED\"}" % url
75-
76-
response, content = http.request(ENDPOINT, method="POST", body=content)
77-
print response, content
78-
time.sleep(1)

0 commit comments

Comments
 (0)