From f4f9e36a35d57e1f99813c0d9874fbe62f27b017 Mon Sep 17 00:00:00 2001 From: Slfhstd Date: Sun, 22 Feb 2026 22:41:30 +0000 Subject: [PATCH] moved posts.json folder to config/posts.json --- flairtimercomment.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flairtimercomment.py b/flairtimercomment.py index af633e2..1e98107 100644 --- a/flairtimercomment.py +++ b/flairtimercomment.py @@ -50,15 +50,15 @@ def main(reddit, posts: dict): time.sleep(config.interval) def load_posts(): - if not os.path.exists("posts.json"): - with open("posts.json", "w+") as file: + if not os.path.exists("config/posts.json"): + with open("config/posts.json", "w+") as file: json.dump({}, file) - with open("posts.json", "r+") as file: + with open("config/posts.json", "r+") as file: data = json.load(file) return data def save_posts(data): - with open('posts.json', 'w+') as file: + with open('config/posts.json', 'w+') as file: json.dump(data, file)