From 26f2b4f4f217b603ef01d2d0eaed810e2c3523db Mon Sep 17 00:00:00 2001 From: Eric Lay Date: Wed, 27 Mar 2024 20:43:44 -0500 Subject: [PATCH] removed unused/un-needed --- app.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/app.py b/app.py index 4eb4de5..00731d0 100644 --- a/app.py +++ b/app.py @@ -14,7 +14,6 @@ ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) WEBSITE_DIRS = [name for name in os.listdir(ROOT_DIR) if not name.startswith('.') and os.path.isdir(os.path.join(ROOT_DIR, name))] # Site choosing logic -website_dir = None def current_website_dir(): session.pop('website_dir', None) if session['requests'] % 5 == 0: @@ -23,7 +22,6 @@ def current_website_dir(): session['website_dir'] = (os.path.join(ROOT_DIR, 'Escape')) session.pop('requests', None) else: - global WEBSITE_DIRS try: WEBSITE_DIRS.remove(os.path.join(ROOT_DIR, 'Marvel')) WEBSITE_DIRS.remove(os.path.join(ROOT_DIR, 'Escape'))