hotfix: missing url_for string conversions (#28)

This commit is contained in:
dni ⚡ 2023-12-21 13:52:56 +01:00 committed by GitHub
commit 631624c54f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ class Card(BaseModel):
return cls(**dict(row))
def lnurl(self, req: Request) -> Lnurl:
url = req.url_for("boltcard.lnurl_response", device_id=self.id, _external=True)
url = str(req.url_for("boltcard.lnurl_response", device_id=self.id, _external=True))
return lnurl_encode(url)
async def lnurlpay_metadata(self) -> LnurlPayMetadata: