url_for not working
This commit is contained in:
parent
2caa4f2df4
commit
10fb16467b
1 changed files with 3 additions and 2 deletions
|
|
@ -21,8 +21,9 @@ async def index(request: Request, user: User = Depends(check_user_exists)):
|
|||
|
||||
|
||||
@livestream_ext.get("/track/{track_id}", name="livestream.track_redirect_download")
|
||||
async def track_redirect_download(track_id, request: Request):
|
||||
payment_hash = request.path_params["p"]
|
||||
async def track_redirect_download(track_id, p: str = Query(...)):
|
||||
print("BOO", track_id, p)
|
||||
payment_hash = p
|
||||
track = await get_track(track_id)
|
||||
ls = await get_livestream_by_track(track_id)
|
||||
payment: Payment = await get_wallet_payment(ls.wallet, payment_hash)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue