Trim whitespace before regex for time multiplyier
This commit is contained in:
parent
ae64de6c21
commit
d16f8bed78
1 changed files with 3 additions and 0 deletions
|
@ -112,6 +112,9 @@ timelog.tmp_timeshift = '(' + timelog.tmp_timeshift + ')'
|
|||
timelog['tmp_timeshift'] = timelog['tmp_timeshift'].fillna("")
|
||||
timelog['description'] = timelog.apply(lambda x: x['description'].replace(x['tmp_timeshift'], ''), axis=1)
|
||||
|
||||
# Be sure to trim any whitespace before we regex for ending on asterisk number.
|
||||
timelog['description'] = timelog['description'].str.strip()
|
||||
|
||||
# If a multiplier has been provided (an asterisk and an integer at the end of a
|
||||
# task), then multiply the time by it and remove it from the description.
|
||||
# Ensure we're splitting on the same asterisk we found: Use the end of string
|
||||
|
|
Loading…
Add table
Reference in a new issue