Fix typo that was stopping everything

This commit is contained in:
benjamin melançon 2021-06-18 17:12:11 -04:00
parent bd9c06e9b9
commit d3af86c8ea

View file

@ -128,8 +128,8 @@ for preferred, alternatives in compound_project_tasks.items():
# If a compound project was specified, break that out into a sub-project (in # If a compound project was specified, break that out into a sub-project (in
# Harvest, we use Task, which is really task type, for this. # Harvest, we use Task, which is really task type, for this.
timelog['subproject'] = (np.where(timelog['project'].str.contains(''), timelog['project'].str.split(': ', 1).str[1], None)) timelog['subproject'] = (np.where(timelog['project'].str.contains(''), timelog['project'].str.split(' ', 1).str[1], None))
timelog['project'] = (np.where(timelog['project'].str.contains(''), timelog['project'].str.split(': ', 1).str[0], timelog['project'])) timelog['project'] = (np.where(timelog['project'].str.contains(''), timelog['project'].str.split(' ', 1).str[0], timelog['project']))
# Replace irregular-but-known project names with ones timetracking tools use. # Replace irregular-but-known project names with ones timetracking tools use.
harvest_project_names = { harvest_project_names = {