From d8a5e27a972bdbbe03670f3e0e2e2f410bd4d099 Mon Sep 17 00:00:00 2001 From: mlncn Date: Sun, 2 May 2021 20:34:22 -0400 Subject: [PATCH] Save when our last processed date is from so we can pick up where we left off --- pomodoro_to_harvest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index 95fb1ee..caf6524 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -82,3 +82,5 @@ for preferred, alternatives in replacement_project_names.items(): tl = timelog.groupby(["date", timelog.project.fillna(""), "description"]).agg({"time": 'sum', "started": 'min', "recorded": 'max'}).reset_index() tl.to_csv('harvest-ready.csv', index = False) + +settings.pomodoro_latest_recorded(tl.recorded.max())