diff --git a/settings.py b/settings.py index c51fcd6..4e8a66e 100644 --- a/settings.py +++ b/settings.py @@ -37,7 +37,8 @@ def pomodoro_logpath(): def pomodoro_latest_recorded(timestamp = None): if timestamp: - config.set('pomodoro', 'second_latest_recorded', pomodoro.get('latest_recorded', None)) + if pomodoro.get('latest_recorded', None): + config.set('pomodoro', 'second_latest_recorded', pomodoro.get('latest_recorded')) config.set('pomodoro', 'latest_recorded', str(timestamp)) write() else: