bb
This commit is contained in:
parent
70231bc4dd
commit
4c5a757c49
2 changed files with 2 additions and 2 deletions
|
@ -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}
|
||||
return {"num_banners":num_banners, "environ":environ, "SITE_NAME":SITE_NAME}
|
Loading…
Add table
Add a link
Reference in a new issue