From d0e5e4239899be453e9bdc3c173ed833191cd24b Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Tue, 29 Oct 2024 12:39:47 +0000 Subject: [PATCH] fix: datetime model --- models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models.py b/models.py index 2cf928a..a25e37d 100644 --- a/models.py +++ b/models.py @@ -44,7 +44,7 @@ class WithdrawLink(BaseModel): webhook_headers: str = Query(None) webhook_body: str = Query(None) custom_url: str = Query(None) - created_at: datetime = datetime.now(timezone.utc) + created_at: datetime @property def is_spent(self) -> bool: @@ -72,7 +72,7 @@ class WithdrawLink(BaseModel): def lnurl_response(self, req: Request) -> LnurlWithdrawResponse: url = req.url_for("withdraw.api_lnurl_callback", unique_hash=self.unique_hash) return LnurlWithdrawResponse( - callback=ClearnetUrl(url, scheme="https"), # type: ignore + callback=ClearnetUrl(url, scheme="https"), # type: ignore k1=self.k1, minWithdrawable=MilliSatoshi(self.min_withdrawable * 1000), maxWithdrawable=MilliSatoshi(self.max_withdrawable * 1000),