forked from rDrama/rDrama
master
parent
60edef2444
commit
482dbc40e6
|
@ -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…
Reference in New Issue