diff --git a/gelbooru_poster.py b/gelbooru_poster.py index 1a7087e..e5aebed 100644 --- a/gelbooru_poster.py +++ b/gelbooru_poster.py @@ -206,7 +206,7 @@ def main(): for key in defaults: if key not in cfg_tmp: cfg_tmp[key] = defaults[key] - if cfg_tmp['last_run_time'] == -1: + if cfg_tmp['last_run_time'] == -1 or cfg_tmp['last_run_time'] > time.time() + 60 * 60: # If last run time is in the future, set it to 1 hour ago cfg_tmp['last_run_time'] = time.time() - 60 * 60 if cfg_tmp['last_run_time'] != -1 and time.time() - cfg_tmp['last_run_time'] < 60 * 60: