fix: use absolute imports in app.py (not relative)
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled

app.py is a top-level module, not inside a package, so relative
imports (from .bp...) fail at runtime.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-10 01:16:03 +00:00
parent 6c706703e6
commit 8dc540606e

6
app.py
View File

@@ -47,15 +47,15 @@ def create_app() -> "Quart":
)
# Tickets blueprint — user-facing ticket views and QR codes
from .bp.tickets.routes import register as register_tickets
from bp.tickets.routes import register as register_tickets
app.register_blueprint(register_tickets())
# Ticket admin — check-in interface (admin only)
from .bp.ticket_admin.routes import register as register_ticket_admin
from bp.ticket_admin.routes import register as register_ticket_admin
app.register_blueprint(register_ticket_admin())
# Internal API (server-to-server, CSRF-exempt)
from .events_api import register as register_events_api
from events_api import register as register_events_api
app.register_blueprint(register_events_api())
return app