biggest money

This commit is contained in:
Aevann1 2022-01-31 03:41:04 +02:00
parent 9432f69e17
commit a172970b4b
25 changed files with 108 additions and 55 deletions

View file

@ -244,6 +244,14 @@ def front_all(v):
if badge: g.db.delete(badge)
g.db.commit()
if v.rehab and v.rehab < time.time():
v.rehab = None
send_repeatable_notification(v.id, "Your rehab has finished!")
g.db.add(v)
badge = v.has_badge(109)
if badge: g.db.delete(badge)
g.db.commit()
if request.headers.get("Authorization"): return {"data": [x.json for x in posts], "next_exists": next_exists}
return render_template("home.html", v=v, listing=posts, next_exists=next_exists, sort=sort, t=t, page=page)