From 71a04b1611e34334b3c31d8719e6cb011d4590d1 Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Fri, 18 Feb 2022 13:42:58 +0100 Subject: [PATCH] Fix track comment route --- api/obs/api/routes/tracks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/obs/api/routes/tracks.py b/api/obs/api/routes/tracks.py index 3de5bf8..6abe794 100644 --- a/api/obs/api/routes/tracks.py +++ b/api/obs/api/routes/tracks.py @@ -264,8 +264,7 @@ async def put_track(req, slug: str): @api.get("/tracks//comments") -async def get_track_comments(req): - slug = req.ctx.get_single_arg("slug") +async def get_track_comments(req, slug: str): limit = req.ctx.get_single_arg("limit", default=20, convert=int) offset = req.ctx.get_single_arg("offset", default=0, convert=int)