Update app.py
Update model escape shell page to load after template
This commit is contained in:
parent
4f6c22a9bb
commit
888b082eb6
5
app.py
5
app.py
|
@ -22,11 +22,14 @@ def current_website_dir():
|
||||||
if request_count % 5 == 0:
|
if request_count % 5 == 0:
|
||||||
global website_dir
|
global website_dir
|
||||||
website_dir = str(ROOT_DIR+"/Marvel")
|
website_dir = str(ROOT_DIR+"/Marvel")
|
||||||
|
elif request_count % 6 == 0:
|
||||||
|
website_dir = str(ROOT_DIR+"/Escape")
|
||||||
else:
|
else:
|
||||||
global WEBSITE_DIRS
|
global WEBSITE_DIRS
|
||||||
try:
|
try:
|
||||||
|
WEBSITE_DIRS.remove('Escape')
|
||||||
WEBSITE_DIRS.remove('Marvel')
|
WEBSITE_DIRS.remove('Marvel')
|
||||||
except ValueError:
|
except (ValueError, IndexError) as e:
|
||||||
pass
|
pass
|
||||||
website_dir = random.choice(WEBSITE_DIRS)
|
website_dir = random.choice(WEBSITE_DIRS)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue