From 17d87d1ed241ea36e54ed2b3ddc7c345c52aa70b Mon Sep 17 00:00:00 2001 From: Eric Lay Date: Wed, 27 Mar 2024 19:11:52 -0500 Subject: [PATCH] WIP --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index e132976..fa520b3 100644 --- a/app.py +++ b/app.py @@ -25,8 +25,8 @@ def current_website_dir(): else: global WEBSITE_DIRS try: - WEBSITE_DIRS.remove('Escape') - WEBSITE_DIRS.remove('Marvel') + WEBSITE_DIRS.remove(os.path.isdir(os.path.join(ROOT_DIR, 'Escape'))) + WEBSITE_DIRS.remove(os.path.isdir(os.path.join(ROOT_DIR, 'Marvel'))) except (ValueError, IndexError) as e: pass website_dir = random.choice(WEBSITE_DIRS)