updat pointers according to the number fetched urls
This commit is contained in:
parent
8fc187a622
commit
dc86a11aff
|
|
@ -36,7 +36,7 @@ def start():
|
|||
for url in urls_added:
|
||||
r.rpush("repo_urls","%d-%s"%(url[0],url[1]))
|
||||
cursor.execute(sql_update_pushtime,(time.time(),url[0]))
|
||||
cursor.execute(sql_update_pointer,(last_id + patch_size,))
|
||||
cursor.execute(sql_update_pointer,(last_id + len(urls_added),))
|
||||
conn.commit()
|
||||
else:
|
||||
logger.info(">>enough urls")
|
||||
|
|
|
|||
Loading…
Reference in New Issue