diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index 03a03e6..6d895be 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -43,7 +43,7 @@ timelog['description'] = timelog['description'].str.strip() timelog['tmp_multiplier'] = (np.where(timelog['description'].str.contains('\*\s*\d$'), timelog['description'].str.rsplit('*', 1).str[1].str.strip(), 1)) timelog['description'] = (np.where(timelog['description'].str.contains('\*\s*\d$'), timelog['description'].str.rsplit('*', 1).str[0], timelog['description'])) timelog["time"] = timelog["time"] * timelog['tmp_multiplier'].astype(int) -timelog['tmp_multiplier'].drop() +timelog.drop(columns=['tmp_multiplier'], inplace=True) # Clean up description again, after it has been sliced and diced. timelog['description'] = timelog['description'].str.strip()