remotes/1693045480750635534/spooky-22
Aevann1 2021-10-20 23:13:30 +02:00
parent 2383019663
commit 733a57b033
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ from files.helpers.alerts import *
from files.helpers.get import *
from files.helpers.const import *
from files.classes.award import *
from .front import frontlist
from flask import g, request
@app.get("/shop")
@ -309,6 +310,7 @@ def award_post(pid, v):
else: t = int(time.time()) + 3600
post.stickied = f"t:{t}"
g.db.add(post)
cache.delete_memoized(frontlist)
post.author.received_award_count += 1
g.db.add(post.author)