diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index af34cf3..9cd2357 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -19,8 +19,10 @@ timelog["orig_desc"] = timelog["description"] # Clean up description before we go to work on it. timelog['description'] = timelog['description'].str.strip() +# Allow multiple entries to be put into one prompt by splitting with semicolon. +# TODO make this a flag since it's possible to use semicolons without meaning +# to make multiple task entries at once. timelog["description"] = list(timelog["description"].str.split(";")) - timelog = timelog.explode("description").reset_index() timelog["started"] = pd.to_datetime(timelog["started"]).dt.tz_convert("US/Eastern")