take one at collecting just known harvest stuff
This commit is contained in:
parent
ab951f5b86
commit
379da43764
1 changed files with 9 additions and 2 deletions
|
@ -156,9 +156,16 @@ tl = timelog.groupby(["date", timelog.project.fillna(""), "description"]).agg({"
|
||||||
|
|
||||||
latest = tl.recorded.max()
|
latest = tl.recorded.max()
|
||||||
|
|
||||||
|
# Filter out any blank projects and any projects we know are not in Harvest.
|
||||||
|
# We also do the opposite to get a CSV of the excluded items.
|
||||||
|
non_harvest_list = ["", "Personal", "Near North camp"]
|
||||||
|
other = tl[tl.project.isin(non_harvest_list)]
|
||||||
|
harvest = tl[~tl.project.isin(non_harvest_list)]
|
||||||
|
|
||||||
|
|
||||||
if not debug:
|
if not debug:
|
||||||
hvts.to_csv('harvest-timesheets.csv', index=False)
|
harvest.to_csv('harvest-timesheets.csv', index=False)
|
||||||
noth.to_csv('not-harvest.csv'
|
other.to_csv('not-harvest.csv', index=False)
|
||||||
settings.pomodoro_latest_recorded(latest)
|
settings.pomodoro_latest_recorded(latest)
|
||||||
else:
|
else:
|
||||||
print("We do not write to the harvest-ready.csv nor update the latest recorded setting when run interactively in the python shell.")
|
print("We do not write to the harvest-ready.csv nor update the latest recorded setting when run interactively in the python shell.")
|
||||||
|
|
Loading…
Reference in a new issue