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

Fixed

parent 71096ca6
...@@ -325,11 +325,12 @@ async def main(): ...@@ -325,11 +325,12 @@ async def main():
if arg.limit is not None and num <= int(arg.limit): if arg.limit is not None and num <= int(arg.limit):
break break
cursor = conn.cursor() if arg.database:
entry = (str(arg.u), str(datetime.datetime.now()), num,) cursor = conn.cursor()
cursor.execute('INSERT OR REPLACE INTO users VALUES(?,?,?)', entry) entry = (str(arg.u), str(datetime.datetime.now()), num,)
conn.commit() cursor.execute('INSERT OR REPLACE INTO users VALUES(?,?,?)', entry)
conn.close() conn.commit()
conn.close()
if arg.count: if arg.count:
print("Finished: Successfully collected {} Tweets.".format(num)) 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