Added frontend pages and started making lnurl

This commit is contained in:
Ben Arc
2021-04-13 17:10:25 +01:00
parent 9ec208c434
commit df5e4cb9db
9 changed files with 330 additions and 98 deletions
+6 -7
View File
@@ -13,17 +13,16 @@ class Copilots(NamedTuple):
animation1threshold: int
animation2threshold: int
animation3threshold: int
animation1webhook: str
animation2webhook: str
animation3webhook: str
show_message: bool
amount: int
lnurl_title: str
show_message: int
show_ack: int
amount_made: int
@classmethod
def from_row(cls, row: Row) -> "Copilots":
return cls(**dict(row))
@property
def paid(self):
if self.balance >= self.amount:
return True
else:
return False