diff --git a/lnbits/extensions/example/migrations.py b/lnbits/extensions/example/migrations.py index e69de29bb..04336b554 100644 --- a/lnbits/extensions/example/migrations.py +++ b/lnbits/extensions/example/migrations.py @@ -0,0 +1,11 @@ +#async def m001_initial(db): + +# await db.execute( +# """ +# CREATE TABLE IF NOT EXISTS example ( +# id TEXT PRIMARY KEY, +# wallet TEXT NOT NULL, +# time TIMESTAMP NOT NULL DEFAULT (strftime('%s', 'now')) +# ); +# """ +# ) \ No newline at end of file diff --git a/lnbits/extensions/example/models.py b/lnbits/extensions/example/models.py new file mode 100644 index 000000000..15382e8ce --- /dev/null +++ b/lnbits/extensions/example/models.py @@ -0,0 +1,11 @@ +#from sqlite3 import Row +#from typing import NamedTuple + + +#class Example(NamedTuple): +# id: str +# wallet: str +# +# @classmethod +# def from_row(cls, row: Row) -> "Example": +# return cls(**dict(row)) \ No newline at end of file diff --git a/lnbits/extensions/example/views_api.py b/lnbits/extensions/example/views_api.py index c04f8c77e..e59c1072a 100644 --- a/lnbits/extensions/example/views_api.py +++ b/lnbits/extensions/example/views_api.py @@ -21,8 +21,8 @@ async def api_example(): """Try to add descriptions for others.""" tools = [ { - "name": "Flask", - "url": "https://flask.palletsprojects.com/", + "name": "Quart", + "url": "https://pgjones.gitlab.io/quart/", "language": "Python", }, {