master
Aevann1 2021-11-27 21:41:37 +02:00
parent c0055d026a
commit c7e349c558
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
. 'D:\1.sh'