feat: update to lnbits 1.0.0 (#27)

* feat: update to lnbits 1.0.0
* fix select wallet
* fix splits
* fix: types, postgres errors with cache
---------

Co-authored-by: Tiago Vasconcelos <talvasconcelos@gmail.com>
This commit is contained in:
dni ⚡ 2024-11-28 12:28:00 +01:00 committed by GitHub
commit 5042d40af6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 1300 additions and 1218 deletions

View file

@ -1,19 +1,15 @@
from sqlite3 import Row
from typing import List, Optional
from typing import Optional
from fastapi import Query
from pydantic import BaseModel
class Target(BaseModel):
id: str
wallet: str
source: str
percent: float
alias: Optional[str]
@classmethod
def from_row(cls, row: Row):
return cls(**dict(row))
alias: Optional[str] = None
class TargetPut(BaseModel):
@ -23,4 +19,4 @@ class TargetPut(BaseModel):
class TargetPutList(BaseModel):
targets: List[TargetPut]
targets: list[TargetPut]