Default Leads project subprojects ('tasks') to 'Leads' not 'Development'

This commit is contained in:
benjamin melançon 2022-05-02 12:16:07 -04:00
parent 644b3170ef
commit ffc0f46865

View file

@ -231,6 +231,11 @@ for preferred, alternatives in subproject_names.items():
# TODO flag when task/subproject names are not known, because otherwise they
# get force-created on import.
# Default task for Leads project should be 'Leads' (not Development as will be filled in below).
timelog.loc[(timelog.project=="Leads") & timelog.subproject.isna(), "subproject"] = "Leads"
# The above could also have been done in the compound_project_tasks
# Leaving this here as an example.
# Condense duplicate entries by date, summing the minutes spent, and listing
# the first started and last recorded times for each task.
# The fillna is essential or we drop entries with blank ('None') projects.