remotes/1693045480750635534/spooky-22
Aevann1 2021-10-21 01:17:53 +02:00
parent 82e37fb54a
commit c99dc9d409
1 changed files with 2 additions and 3 deletions

View File

@ -2,9 +2,9 @@ from files.helpers.wrappers import *
from files.helpers.get import *
from files.classes import *
from flask import *
from files.__main__ import app, limiter
from files.__main__ import app, limiter, cache
from sqlalchemy.orm import joinedload
from .front import frontlist
@app.get("/votes")
@auth_desired
@ -101,7 +101,6 @@ def api_vote_post(post_id, new, v):
post.stickied = None
g.db.add(post)
cache.delete_memoized(frontlist)
try:
g.db.flush()
post.upvotes = g.db.query(Vote.id).options(lazyload('*')).filter_by(submission_id=post.id, vote_type=1).count()