diff --git a/files/helpers/const.py b/files/helpers/const.py index cee69275a0..0d609d95fc 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -4,7 +4,6 @@ from copy import deepcopy from json import loads SITE = environ.get("DOMAIN", '').strip() -SITE_NAME = environ.get("SITE_NAME", '').strip() import json diff --git a/files/helpers/jinja2.py b/files/helpers/jinja2.py index 5276ae4395..8b9fe1a938 100644 --- a/files/helpers/jinja2.py +++ b/files/helpers/jinja2.py @@ -3,6 +3,7 @@ from .get import * from os import listdir, environ num_banners = len(listdir('files/assets/images/Drama/banners')) + 1 +SITE_NAME = environ.get("SITE_NAME", '').strip() @app.template_filter("full_link") def full_link(url): @@ -27,4 +28,4 @@ def post_embed(id, v): @app.context_processor def inject_constants(): - return {"num_banners":num_banners, "environ":environ} \ No newline at end of file + return {"num_banners":num_banners, "environ":environ, "SITE_NAME":SITE_NAME} \ No newline at end of file