Try not including spaces when splitting tasks etc off projects, subprojects
This commit is contained in:
parent
b2c3a2bb8a
commit
00735f3764
1 changed files with 2 additions and 2 deletions
|
@ -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
|
# 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 = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue