fdsfsd
parent
c0055d026a
commit
c7e349c558
|
@ -8,6 +8,7 @@ from sqlalchemy.orm import joinedload
|
||||||
from .front import frontlist
|
from .front import frontlist
|
||||||
|
|
||||||
@app.get("/votes")
|
@app.get("/votes")
|
||||||
|
@limiter.limit("5/second;60/minute;200/hour")
|
||||||
@auth_desired
|
@auth_desired
|
||||||
def admin_vote_info_get(v):
|
def admin_vote_info_get(v):
|
||||||
|
|
||||||
|
@ -59,6 +60,7 @@ def admin_vote_info_get(v):
|
||||||
|
|
||||||
|
|
||||||
@app.post("/vote/post/<post_id>/<new>")
|
@app.post("/vote/post/<post_id>/<new>")
|
||||||
|
@limiter.limit("5/second;60/minute;200/hour")
|
||||||
@auth_required
|
@auth_required
|
||||||
@validate_formkey
|
@validate_formkey
|
||||||
def api_vote_post(post_id, new, v):
|
def api_vote_post(post_id, new, v):
|
||||||
|
|
2
push.sh
2
push.sh
|
@ -2,4 +2,4 @@ git pull
|
||||||
git add .
|
git add .
|
||||||
git commit -m "sneed"
|
git commit -m "sneed"
|
||||||
git push
|
git push
|
||||||
. /media/a/Files/1
|
. 'D:\1.sh'
|
|
@ -1,3 +1,4 @@
|
||||||
git add .
|
git add .
|
||||||
git commit -m "force push"
|
git commit -m "force push"
|
||||||
git push --force
|
git push --force
|
||||||
|
. 'D:\1.sh'
|
Loading…
Reference in New Issue