Try not including spaces when splitting tasks etc off projects, subprojects

This commit is contained in:
benjamin melançon 2022-10-12 13:32:04 -04:00
parent b2c3a2bb8a
commit 00735f3764

View file

@ -160,8 +160,8 @@ for preferred, alternatives in compound_project_tasks.items():
# 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).
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['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']))
# Replace irregular-but-known project names with ones timetracking tools use.
harvest_project_names = {