Document multiple task entries piece

This commit is contained in:
benjamin melançon 2021-04-28 00:16:15 -04:00
parent 367b69da3d
commit 9faa5c44c4

View file

@ -19,8 +19,10 @@ timelog["orig_desc"] = timelog["description"]
# Clean up description before we go to work on it. # Clean up description before we go to work on it.
timelog['description'] = timelog['description'].str.strip() 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["description"] = list(timelog["description"].str.split(";"))
timelog = timelog.explode("description").reset_index() timelog = timelog.explode("description").reset_index()
timelog["started"] = pd.to_datetime(timelog["started"]).dt.tz_convert("US/Eastern") timelog["started"] = pd.to_datetime(timelog["started"]).dt.tz_convert("US/Eastern")