Force non-date values to 'not a time' that still let's column be datetime
This commit is contained in:
parent
d952f11350
commit
df64927f5a
2 changed files with 6 additions and 3 deletions
|
@ -66,7 +66,7 @@ timelog = timelog.explode("description").reset_index()
|
||||||
if debug:
|
if debug:
|
||||||
mess = copy.deepcopy(timelog)
|
mess = copy.deepcopy(timelog)
|
||||||
|
|
||||||
timelog["started"] = pd.to_datetime(timelog["started"]).dt.tz_convert("US/Eastern")
|
timelog["started"] = pd.to_datetime(timelog["started"], errors='coerce').dt.tz_convert("US/Eastern")
|
||||||
timelog["recorded"] = pd.to_datetime(timelog["recorded"]).dt.tz_convert("US/Eastern")
|
timelog["recorded"] = pd.to_datetime(timelog["recorded"]).dt.tz_convert("US/Eastern")
|
||||||
|
|
||||||
latest_recorded = settings.pomodoro_latest_recorded()
|
latest_recorded = settings.pomodoro_latest_recorded()
|
||||||
|
|
|
@ -14,8 +14,11 @@ def write():
|
||||||
|
|
||||||
if not os.path.isfile('settings.ini'):
|
if not os.path.isfile('settings.ini'):
|
||||||
# Set some essential initial values.
|
# Set some essential initial values.
|
||||||
pomodoro['logfile'] = '~/Projects/agaric/python/pomodoroprompt/log/timelog.csv'
|
|
||||||
# This path must be absolute, for some reason using ~ for home isn t wor::
|
# pomodoro['logfile'] = '~/Projects/agaric/python/pomodoroprompt/log/timelog.csv'
|
||||||
|
pomodoro['logfile'] = ''
|
||||||
|
|
||||||
|
# This path must be absolute, for some reason using ~ for home isn't working:
|
||||||
pomodoro['logpath'] = '/home/mlncn/Projects/agaric/python/pomodoroprompt/log/'
|
pomodoro['logpath'] = '/home/mlncn/Projects/agaric/python/pomodoroprompt/log/'
|
||||||
write()
|
write()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue