diff --git a/settings.py b/settings.py index b3fc6a3..8228ad7 100644 --- a/settings.py +++ b/settings.py @@ -9,7 +9,7 @@ pomodoro = config['pomodoro'] if not os.path.isfile('settings.ini'): # Set some essential initial values. - pomodoro['logfile'] = '~/Projects/agaric/python/pomodoroprompt/logs/2021.csv' + pomodoro['logfile'] = '~/Projects/agaric/python/pomodoroprompt/log/2021.csv' write() config.read('settings.ini') @@ -22,9 +22,9 @@ def write(): def pomodoro_logfile(): return config['pomodoro']['logfile'] -def pomodoro_latest_recorded(value = None): - if value: - pomodoro.set('latest_recorded', value) +def pomodoro_latest_recorded(timestamp = None): + if timestamp: + config.set('pomodoro', 'latest_recorded', str(timestamp)) write() else: return pomodoro.get('latest_recorded', None)