forked from MarseyWorld/MarseyWorld
fdsfsd
parent
c0055d026a
commit
c7e349c558
|
@ -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):
|
||||
|
|
2
push.sh
2
push.sh
|
@ -2,4 +2,4 @@ git pull
|
|||
git add .
|
||||
git commit -m "sneed"
|
||||
git push
|
||||
. /media/a/Files/1
|
||||
. 'D:\1.sh'
|
|
@ -1,3 +1,4 @@
|
|||
git add .
|
||||
git commit -m "force push"
|
||||
git push --force
|
||||
. 'D:\1.sh'
|
Loading…
Reference in New Issue