Make not using regex explicit (this'll be the default)

but causing warnings now
This commit is contained in:
benjamin melançon 2021-12-18 00:00:12 -05:00
parent 8ffc95fe74
commit 239989075e

View file

@ -90,7 +90,7 @@ timelog['description'] = timelog['description'].str.strip()
timelog['project'] = timelog['project'].str.strip()
timelog['tmp_timeshift'] = timelog['description'].str.extract(r'^(\(.+)\)', expand=False)
timelog['tmp_timeshift'] = timelog['tmp_timeshift'].str.strip().str.replace("(","")
timelog['tmp_timeshift'] = timelog['tmp_timeshift'].str.strip().str.replace("(","", regex=False)
# In an ideal world we would use https://github.com/bear/parsedatetime or similar and
# even better figure out the right date for strings like "Monday" but eh this'll do.
timeshift_days = {