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

Add flush to not lose data

parent fb1278bc
......@@ -50,6 +50,7 @@ try:
while(True):
writer.writerow(get_data())
csvfile.flush()
if(current_month != datetime.now().month):
break
......
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