From b629caada2ae920491cd1af965040ccb22365db6 Mon Sep 17 00:00:00 2001 From: Yan Date: Mon, 22 Jan 2024 22:34:38 -0700 Subject: [PATCH] fix order of dojo_route/admin --- dojo_plugin/api/v1/dojo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dojo_plugin/api/v1/dojo.py b/dojo_plugin/api/v1/dojo.py index baaa88659..e26bf5cba 100644 --- a/dojo_plugin/api/v1/dojo.py +++ b/dojo_plugin/api/v1/dojo.py @@ -78,8 +78,8 @@ def create_dojo(user, repository, public_key, private_key): @dojo_namespace.route("//prune-awards") class PruneAwards(Resource): @authed_only - @dojo_admin @dojo_route + @dojo_admin def post(self, dojo): all_completions = set(user for user,_ in dojo.completions()) num_pruned = 0 @@ -93,8 +93,8 @@ def post(self, dojo): @dojo_namespace.route("//promote-admin") class PromoteAdmin(Resource): @authed_only - @dojo_admin @dojo_route + @dojo_admin def post(self, dojo): data = request.get_json() if 'user_id' not in data: