fix: use absolute imports in app.py (not relative)
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
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:
6
app.py
6
app.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user