Commit a0a0f690 authored by Rousseau Vincent's avatar Rousseau Vincent
Browse files

Add flush to not lose data

No related merge requests found
Showing with 1 addition and 0 deletions
+1 -0
......@@ -50,6 +50,7 @@ try:
while(True):
writer.writerow(get_data())
csvfile.flush()
if(current_month != datetime.now().month):
break
......
Supports Markdown
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