From 472010fcc228592447ef4038fbeb53c459f8df23 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Thu, 9 Feb 2023 12:27:47 -0500 Subject: [PATCH] Fix scoreboard detail count parameter (#2256) * Add int requirement to `/api/v1/scoreboard/top/` --- CTFd/api/v1/scoreboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CTFd/api/v1/scoreboard.py b/CTFd/api/v1/scoreboard.py index 02620b8e..06edd3e5 100644 --- a/CTFd/api/v1/scoreboard.py +++ b/CTFd/api/v1/scoreboard.py @@ -77,7 +77,7 @@ class ScoreboardList(Resource): return {"success": True, "data": response} -@scoreboard_namespace.route("/top/") +@scoreboard_namespace.route("/top/") @scoreboard_namespace.param("count", "How many top teams to return") class ScoreboardDetail(Resource): @check_account_visibility