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")
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)