lnbits-legend/lnbits/extensions/jukebox/models.py

19 lines
394 B
Python
Raw Normal View History

2021-04-27 10:07:17 +01:00
import json
import base64
import hashlib
from collections import OrderedDict
from quart import url_for
from typing import NamedTuple, Optional, List, Dict
2021-04-27 10:13:04 +01:00
from sqlite3 import Row
2021-04-27 10:07:17 +01:00
class Jukebox(NamedTuple):
id: int
wallet: str
user: str
secret: str
token: str
playlists: str
@classmethod
def from_row(cls, row: Row) -> "Charges":
return cls(**dict(row))