From b9d82dc07317164b05fd89ee48aeccf4bcc5a580 Mon Sep 17 00:00:00 2001 From: nanos Date: Wed, 5 Apr 2023 09:15:24 +0100 Subject: [PATCH] Fixes missing arguments (#35) --- find_posts.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/find_posts.py b/find_posts.py index e5586ed..e06d697 100644 --- a/find_posts.py +++ b/find_posts.py @@ -753,7 +753,7 @@ if __name__ == "__main__": log(f"Error getting callback url: {ex}") if arguments.lock_file is None: - arguments.lock_file = os.path.join(arguments.state, 'lock.lock') + arguments.lock_file = os.path.join(arguments.state_dir, 'lock.lock') LOCK_FILE = arguments.lock_file if( os.path.exists(LOCK_FILE)): @@ -789,10 +789,10 @@ if __name__ == "__main__": try: - SEEN_URLS_FILE = os.path.join(arguments.state, "seen_urls") - REPLIED_TOOT_SERVER_IDS_FILE = os.path.join(arguments.state, "replied_toot_server_ids") - KNOWN_FOLLOWINGS_FILE = os.path.join(arguments.state, "known_followings") - RECENTLY_CHECKED_USERS_FILE = os.path.join(arguments.state, "recently_checked_users") + SEEN_URLS_FILE = os.path.join(arguments.state_dir, "seen_urls") + REPLIED_TOOT_SERVER_IDS_FILE = os.path.join(arguments.state_dir, "replied_toot_server_ids") + KNOWN_FOLLOWINGS_FILE = os.path.join(arguments.state_dir, "known_followings") + RECENTLY_CHECKED_USERS_FILE = os.path.join(arguments.state_dir, "recently_checked_users") seen_urls = OrderedSet([])