Update app.py

Update model escape shell page to load after template
This commit is contained in:
Eric Lay 2024-03-27 16:18:03 -05:00 committed by GitHub
parent 4f6c22a9bb
commit 888b082eb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

5
app.py
View File

@ -22,11 +22,14 @@ def current_website_dir():
if request_count % 5 == 0:
global website_dir
website_dir = str(ROOT_DIR+"/Marvel")
elif request_count % 6 == 0:
website_dir = str(ROOT_DIR+"/Escape")
else:
global WEBSITE_DIRS
try:
WEBSITE_DIRS.remove('Escape')
WEBSITE_DIRS.remove('Marvel')
except ValueError:
except (ValueError, IndexError) as e:
pass
website_dir = random.choice(WEBSITE_DIRS)