remotes/1693045480750635534/spooky-22
Aevann1 2022-02-11 00:21:32 +02:00
parent 0d91fc07bb
commit f82a9a6c4c
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,6 @@ app.config["READ_ONLY"]=bool(int(environ.get("READ_ONLY", "0")))
app.config["BOT_DISABLE"]=bool(int(environ.get("BOT_DISABLE", False)))
app.config["CACHE_TYPE"] = "RedisCache"
app.config["CACHE_REDIS_URL"] = environ.get("REDIS_URL", "redis://localhost")
app.config["CACHE_KEY_PREFIX"] = app.config["SITE_NAME"]
app.config['MAIL_SERVER'] = 'smtp.gmail.com'
app.config['MAIL_PORT'] = 587
app.config['MAIL_USE_TLS'] = True

View File

@ -176,7 +176,8 @@ def front_all(v, sub=None):
filter_words=v.filter_words if v else [],
gt=gt,
lt=lt,
sub=sub
sub=sub,
site=SITE_NAME
)
posts = get_posts(ids, v=v)
@ -263,7 +264,7 @@ def front_all(v, sub=None):
@cache.memoize(timeout=86400)
def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false", filter_words='', gt=0, lt=0, sub=None):
def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false", filter_words='', gt=0, lt=0, sub=None, site=None):
posts = g.db.query(Submission)