diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index dd8a6ab..208fa2e 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -199,6 +199,7 @@ tl = timelog.groupby(["date", timelog.project.fillna(""), timelog.subproject.fil # want to factor out all of the above non-Harvest-specific logic. latest = tl.recorded.max() +datest = str(tl.date.max()) # Separate Harvest from non-Harvest projects, and also filter out any blank # projects, but save those too for a CSV of the excluded items. @@ -215,9 +216,9 @@ harvest["Client"] = harvest["Project"].map(project_client_mapping) harvest.drop(columns = ['started', 'recorded', 'time'], inplace=True) if not debug: - harvest.to_csv('harvest-timesheets.csv', index=False) - other.to_csv('personal-other.csv', index=False) - unknown.to_csv('unknown.csv', index=False) + harvest.to_csv('harvest-timesheets-' + datest + '.csv', index=False) + other.to_csv('personal-other-' + datest + '.csv', index=False) + unknown.to_csv('unknown-' + datest + '.csv', index=False) settings.pomodoro_latest_recorded(latest) else: hrvst_grouped = hrvst.groupby("project").agg({"time": "sum"})["time"]/60