Write out all data to one or another CSV

This commit is contained in:
benjamin melançon 2021-06-02 13:16:09 -04:00
parent 93a7049de5
commit 4106341b92

View file

@ -190,10 +190,11 @@ harvest.drop(columns = ['started', 'recorded', 'time'], inplace=True)
if not debug:
harvest.to_csv('harvest-timesheets.csv', index=False)
other.to_csv('not-harvest.csv', index=False)
other.to_csv('personal-other.csv', index=False)
unknown.to_csv('unknown.csv', index=False)
settings.pomodoro_latest_recorded(latest)
else:
hrvst_grouped = hrvst.groupby("project").agg({"time": "sum"})["time"]/60
other_grouped = other.groupby("project").agg({"time": "sum"})["time"]/60
unknown_grouped = unknown.groupby("project").agg({"time": "sum"})["time"]/60
print("We do not write to the harvest-ready.csv nor update the latest recorded setting when run interactively in the python shell.")
print("We do not write to CSV nor update the latest recorded setting when run interactively in the python shell.")