bb
This commit is contained in:
parent
70231bc4dd
commit
4c5a757c49
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,6 @@ from copy import deepcopy
|
||||||
from json import loads
|
from json import loads
|
||||||
|
|
||||||
SITE = environ.get("DOMAIN", '').strip()
|
SITE = environ.get("DOMAIN", '').strip()
|
||||||
SITE_NAME = environ.get("SITE_NAME", '').strip()
|
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ from .get import *
|
||||||
from os import listdir, environ
|
from os import listdir, environ
|
||||||
|
|
||||||
num_banners = len(listdir('files/assets/images/Drama/banners')) + 1
|
num_banners = len(listdir('files/assets/images/Drama/banners')) + 1
|
||||||
|
SITE_NAME = environ.get("SITE_NAME", '').strip()
|
||||||
|
|
||||||
@app.template_filter("full_link")
|
@app.template_filter("full_link")
|
||||||
def full_link(url):
|
def full_link(url):
|
||||||
|
@ -27,4 +28,4 @@ def post_embed(id, v):
|
||||||
|
|
||||||
@app.context_processor
|
@app.context_processor
|
||||||
def inject_constants():
|
def inject_constants():
|
||||||
return {"num_banners":num_banners, "environ":environ}
|
return {"num_banners":num_banners, "environ":environ, "SITE_NAME":SITE_NAME}
|
Loading…
Add table
Add a link
Reference in a new issue