This commit is contained in:
Aevann1 2021-11-27 21:41:37 +02:00
parent 5ef7b478af
commit 74f222d6f1
3 changed files with 5 additions and 2 deletions

View file

@ -8,6 +8,7 @@ from sqlalchemy.orm import joinedload
from .front import frontlist
@app.get("/votes")
@limiter.limit("5/second;60/minute;200/hour")
@auth_desired
def admin_vote_info_get(v):
@ -59,6 +60,7 @@ def admin_vote_info_get(v):
@app.post("/vote/post/<post_id>/<new>")
@limiter.limit("5/second;60/minute;200/hour")
@auth_required
@validate_formkey
def api_vote_post(post_id, new, v):

View file

@ -2,4 +2,4 @@ git pull
git add .
git commit -m "sneed"
git push
. /media/a/Files/1
. 'D:\1.sh'

View file

@ -1,3 +1,4 @@
git add .
git commit -m "force push"
git push --force
git push --force
. 'D:\1.sh'