Add a created at field (#77)
Some checks failed
/ release (push) Has been cancelled
/ pullrequest (push) Has been cancelled

This commit is contained in:
Tiago Vasconcelos 2025-03-03 17:01:32 +00:00 committed by GitHub
commit 2118c8c745
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 91 additions and 22 deletions

View file

@ -1,4 +1,5 @@
import json
from datetime import datetime
from typing import Optional
from fastapi import Query, Request
@ -59,6 +60,8 @@ class PayLink(BaseModel):
comment_chars: int
max: float
fiat_base_multiplier: int
created_at: datetime
updated_at: datetime
def lnurl(self, req: Request) -> str:
url = req.url_for("lnurlp.api_lnurl_response", link_id=self.id)