From 5ac674bf0d51e9d0c89dae9625388c93eb6ea27c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Tue, 1 Jun 2021 20:47:42 -0400 Subject: [PATCH] Give ourselves the debug variables we invariably create anyhow --- pomodoro_to_harvest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index 34259eb..fb9a9b6 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -174,4 +174,7 @@ if not debug: other.to_csv('not-harvest.csv', index=False) settings.pomodoro_latest_recorded(latest) else: + harvest_grouped = harvest.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.")