remotes/1693045480750635534/spooky-22
Aevann1 2021-07-31 06:39:19 +02:00
parent d4134c9da7
commit 0dae9d133f
2 changed files with 2 additions and 5 deletions

View File

@ -32,10 +32,8 @@ def get_logged_in_user(db=None):
uid = session.get("user_id")
nonce = session.get("login_nonce", 0)
if not uid:
x= (None, None)
v = db.query(User).filter_by(
id=uid).first()
if not uid: x= (None, None)
v = db.query(User).filter_by(id=uid).first()
if v and v.agendaposter_expires_utc and v.agendaposter_expires_utc < g.timestamp:
v.agendaposter_expires_utc = 0

View File

@ -177,7 +177,6 @@ def frontlist(v=None, sort="hot", page=1,t="all", ids_only=True, filter_words=''
return posts
@app.get("/")
@app.get("/api/v1/listing")
@auth_desired
def front_all(v):