Fix typo in comment

This commit is contained in:
benjamin melançon 2022-05-02 12:15:10 -04:00
parent 105f2cd185
commit 3c519a8723

View file

@ -157,7 +157,7 @@ for preferred, alternatives in compound_project_tasks.items():
timelog.loc[timelog.project.str.lower().isin(alternatives), "project"] = preferred timelog.loc[timelog.project.str.lower().isin(alternatives), "project"] = preferred
# 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']))