Store the second-most-recent timestamp so it's easy to go back and redo a full parse

This commit is contained in:
benjamin melançon 2021-08-17 15:15:17 -04:00
parent 7bfb46dff3
commit 8b022f123b

View file

@ -36,6 +36,7 @@ def pomodoro_logpath():
def pomodoro_latest_recorded(timestamp = None): def pomodoro_latest_recorded(timestamp = None):
if timestamp: if timestamp:
config.set('pomodoro', 'second_latest_recorded', pomodoro.get('latest_recorded', None))
config.set('pomodoro', 'latest_recorded', str(timestamp)) config.set('pomodoro', 'latest_recorded', str(timestamp))
write() write()
else: else: