fix: Use db.insert() for ticket creation to fix SQLite serialization #1

Closed
padreug wants to merge 8 commits from fix/sqlite-ticket-extra-serialization into main
2 changed files with 2 additions and 0 deletions
Showing only changes of commit 33977c53d6 - Show all commits

Imports Optional type hint

Imports the `Optional` type hint from the `typing` module into `crud.py` and `models.py`.

This provides more explicit type annotations where values can be `None`.
padreug 2025-11-04 01:42:14 +01:00

View file

@ -1,4 +1,5 @@
from datetime import datetime, timedelta, timezone
from typing import Optional
from lnbits.db import Database
from lnbits.helpers import urlsafe_short_hash

View file

@ -1,4 +1,5 @@
from datetime import datetime
from typing import Optional
from fastapi import Query
from pydantic import BaseModel, EmailStr, root_validator