sfdfsd
This commit is contained in:
parent
0eb2f231d6
commit
6365cc148b
2 changed files with 4 additions and 7 deletions
|
@ -744,4 +744,6 @@ NOTIFIED_USERS = {
|
||||||
'dong': DONGER_ID,
|
'dong': DONGER_ID,
|
||||||
'dong': FARTBINN_ID,
|
'dong': FARTBINN_ID,
|
||||||
'kippy': KIPPY_ID,
|
'kippy': KIPPY_ID,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
num_banners = len(listdir('files/assets/images/Drama/banners')) + 1
|
|
@ -1,16 +1,11 @@
|
||||||
from files.helpers.wrappers import *
|
from files.helpers.wrappers import *
|
||||||
from files.helpers.get import *
|
from files.helpers.get import *
|
||||||
|
|
||||||
from files.__main__ import app, cache
|
from files.__main__ import app, cache
|
||||||
from files.classes.submission import Submission
|
from files.classes.submission import Submission
|
||||||
from os import listdir
|
|
||||||
|
|
||||||
defaulttimefilter = environ.get("DEFAULT_TIME_FILTER", "all").strip()
|
defaulttimefilter = environ.get("DEFAULT_TIME_FILTER", "all").strip()
|
||||||
SITE_NAME = environ.get("SITE_NAME", "").strip()
|
SITE_NAME = environ.get("SITE_NAME", "").strip()
|
||||||
|
|
||||||
if SITE_NAME == 'Drama': num_banners = len(listdir('files/assets/images/Drama/banners')) + 1
|
|
||||||
else: num_banners = None
|
|
||||||
|
|
||||||
@app.get("/post/")
|
@app.get("/post/")
|
||||||
def slash_post():
|
def slash_post():
|
||||||
return redirect("/")
|
return redirect("/")
|
||||||
|
@ -207,7 +202,7 @@ def front_all(v):
|
||||||
if request.headers.get("Authorization"): return {"data": [x.json for x in posts], "next_exists": next_exists}
|
if request.headers.get("Authorization"): return {"data": [x.json for x in posts], "next_exists": next_exists}
|
||||||
if not v or v.oldsite: template = ''
|
if not v or v.oldsite: template = ''
|
||||||
else: template = 'CHRISTMAS/'
|
else: template = 'CHRISTMAS/'
|
||||||
return render_template(f"{template}home.html", v=v, listing=posts, num_banners=num_banners, next_exists=next_exists, sort=sort, t=t, page=page)
|
return render_template(f"{template}home.html", v=v, listing=posts, next_exists=next_exists, sort=sort, t=t, page=page)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue