Commit 4b70874e authored by Francesco Poldi's avatar Francesco Poldi

Fixed

parent 71096ca6
......@@ -325,11 +325,12 @@ async def main():
if arg.limit is not None and num <= int(arg.limit):
break
cursor = conn.cursor()
entry = (str(arg.u), str(datetime.datetime.now()), num,)
cursor.execute('INSERT OR REPLACE INTO users VALUES(?,?,?)', entry)
conn.commit()
conn.close()
if arg.database:
cursor = conn.cursor()
entry = (str(arg.u), str(datetime.datetime.now()), num,)
cursor.execute('INSERT OR REPLACE INTO users VALUES(?,?,?)', entry)
conn.commit()
conn.close()
if arg.count:
print("Finished: Successfully collected {} Tweets.".format(num))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment