Improved comment
This commit is contained in:
parent
5e988aa9f7
commit
451e89682e
1 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,8 @@ class MyExtension(BaseModel):
|
||||||
wallet: str
|
wallet: str
|
||||||
total: int
|
total: int
|
||||||
|
|
||||||
# Below is only needed if you want to add extra fields to the model
|
# Below is only needed if you want to add extra calculated fields to the model,
|
||||||
|
# like getting the links for lnurlpay and lnurlwithdraw fields in this case.
|
||||||
def lnurlpay(self, req: Request) -> str:
|
def lnurlpay(self, req: Request) -> str:
|
||||||
url = req.url_for("myextension.api_lnurl_pay", myextension_id=self.id)
|
url = req.url_for("myextension.api_lnurl_pay", myextension_id=self.id)
|
||||||
url_str = str(url)
|
url_str = str(url)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue