File tree Expand file tree Collapse file tree
private/scripts/google_index Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646 (atable .registration_key == "" ) & \
4747 (atable .id > last_user_id )
4848rows = db (query ).select (orderby = ~ atable .id ,
49- limitby = (0 , 100 ))
49+ limitby = (0 , 200 ))
5050
5151if len (rows ) > 0 :
5252 current .REDIS_CLIENT .set ("last_user_id_submitted_to_google" ,
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 )
You can’t perform that action at this time.
0 commit comments