chore: satisfy upstream lint (black, mypy, prettier, ruff)
Some checks failed
lint.yml / chore: satisfy upstream lint (black, mypy, prettier, ruff) (push) Failing after 0s
Some checks failed
lint.yml / chore: satisfy upstream lint (black, mypy, prettier, ruff) (push) Failing after 0s
- black/prettier reformatting across new aio code - type annotations on db.fetchone/fetchall callsites in crud.py - explicit dict[str, list[str]] for tag_lists in nostr_sync.py - type:ignore[attr-defined] on Account.prvkey access — the field is added by the aio-fork lnbits.core.models.Account; upstream lnbits does not yet have it, so consumers without the fork must add a prvkey column to accounts before the Nostr publisher can sign. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
42a373bff1
commit
b428b0dca8
11 changed files with 48 additions and 57 deletions
|
|
@ -232,14 +232,12 @@ async def m010_add_events_settings(db):
|
|||
Create the extension settings singleton row used by the admin UI to
|
||||
toggle e.g. auto_approve.
|
||||
"""
|
||||
await db.execute(
|
||||
"""
|
||||
await db.execute("""
|
||||
CREATE TABLE IF NOT EXISTS events.settings (
|
||||
id INTEGER PRIMARY KEY DEFAULT 1,
|
||||
auto_approve BOOLEAN NOT NULL DEFAULT FALSE
|
||||
)
|
||||
"""
|
||||
)
|
||||
""")
|
||||
await db.execute(
|
||||
"INSERT INTO events.settings (id, auto_approve) "
|
||||
"SELECT 1, FALSE WHERE NOT EXISTS "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue