Skip to content

Commit

Permalink
removed timestamp from models
Browse files Browse the repository at this point in the history
  • Loading branch information
arcbtc committed Oct 1, 2024
1 parent bcdafe4 commit 4d5d338
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async def get_lnurldevice(lnurldevice_id: str, req: Request) -> Optional[Lnurlde


async def get_lnurldevices(wallet_ids: List[str], req: Request) -> List[Lnurldevice]:

q = ",".join(["?"] * len(wallet_ids))
rows = await db.fetchall(
f"""
Expand Down Expand Up @@ -216,7 +216,9 @@ async def get_lnurldevicepayment(

async def get_lnurldevicepayments(
lnurldevice_ids: List[str],
) -> List[LnurldevicePayment]:
) -> Optional[List[LnurldevicePayment]]:
if not lnurldevice_ids:
return []
q = ",".join(["?"] * len(lnurldevice_ids))
rows = await db.fetchall(
f"""
Expand Down
2 changes: 0 additions & 2 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class Lnurldevice(BaseModel):
currency: str
device: str
extra: Optional[Union[Json[List[LnurldeviceExtra]], str]]
timestamp: str

@property
def lnurlpay_metadata(self) -> LnurlPayMetadata:
Expand All @@ -46,7 +45,6 @@ class LnurldevicePayment(BaseModel):
payload: str
pin: int
sats: int
timestamp: str


class Lnurlencode(BaseModel):
Expand Down

0 comments on commit 4d5d338

Please sign in to comment.