removed unused/un-needed

This commit is contained in:
Eric Lay 2024-03-27 20:43:44 -05:00
parent 1cfb5f7535
commit 26f2b4f4f2
1 changed files with 0 additions and 2 deletions

2
app.py
View File

@ -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))] 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 # Site choosing logic
website_dir = None
def current_website_dir(): def current_website_dir():
session.pop('website_dir', None) session.pop('website_dir', None)
if session['requests'] % 5 == 0: if session['requests'] % 5 == 0:
@ -23,7 +22,6 @@ def current_website_dir():
session['website_dir'] = (os.path.join(ROOT_DIR, 'Escape')) session['website_dir'] = (os.path.join(ROOT_DIR, 'Escape'))
session.pop('requests', None) session.pop('requests', None)
else: else:
global WEBSITE_DIRS
try: try:
WEBSITE_DIRS.remove(os.path.join(ROOT_DIR, 'Marvel')) WEBSITE_DIRS.remove(os.path.join(ROOT_DIR, 'Marvel'))
WEBSITE_DIRS.remove(os.path.join(ROOT_DIR, 'Escape')) WEBSITE_DIRS.remove(os.path.join(ROOT_DIR, 'Escape'))