diff --git a/files/routes/votes.py b/files/routes/votes.py index bc3f59e3c..46500832d 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -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//") +@limiter.limit("5/second;60/minute;200/hour") @auth_required @validate_formkey def api_vote_post(post_id, new, v): diff --git a/push.sh b/push.sh index 64da5305b..e5639e0a7 100644 --- a/push.sh +++ b/push.sh @@ -2,4 +2,4 @@ git pull git add . git commit -m "sneed" git push -. /media/a/Files/1 +. 'D:\1.sh' \ No newline at end of file diff --git a/pushforce.sh b/pushforce.sh index 1181e0ef2..0f8016366 100644 --- a/pushforce.sh +++ b/pushforce.sh @@ -1,3 +1,4 @@ git add . git commit -m "force push" -git push --force \ No newline at end of file +git push --force +. 'D:\1.sh' \ No newline at end of file