Fix track comment route

This commit is contained in:
Paul Bienkowski 2022-02-18 13:42:58 +01:00
parent 7fc9558e42
commit 71a04b1611

View file

@ -264,8 +264,7 @@ async def put_track(req, slug: str):
@api.get("/tracks/<slug:str>/comments") @api.get("/tracks/<slug:str>/comments")
async def get_track_comments(req): async def get_track_comments(req, slug: str):
slug = req.ctx.get_single_arg("slug")
limit = req.ctx.get_single_arg("limit", default=20, convert=int) limit = req.ctx.get_single_arg("limit", default=20, convert=int)
offset = req.ctx.get_single_arg("offset", default=0, convert=int) offset = req.ctx.get_single_arg("offset", default=0, convert=int)