mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-22 03:24:18 +01:00
Nostr bech32 dm (#109)
* nostr: bech32 keys and remember last DM check * cump to 0.9.2 * make format
This commit is contained in:
@@ -144,3 +144,28 @@ async def m006_invoices(db: Database):
|
||||
);
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
async def m007_nostr(db: Database):
|
||||
"""
|
||||
Stores timestamps of nostr operations.
|
||||
"""
|
||||
await db.execute(
|
||||
f"""
|
||||
CREATE TABLE IF NOT EXISTS nostr (
|
||||
type TEXT NOT NULL,
|
||||
last TIMESTAMP DEFAULT NULL
|
||||
)
|
||||
"""
|
||||
)
|
||||
await db.execute(
|
||||
f"""
|
||||
INSERT INTO nostr
|
||||
(type, last)
|
||||
VALUES (?, ?)
|
||||
""",
|
||||
(
|
||||
"dm",
|
||||
None,
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user