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)