forked from cartsnitch/api
c005c68230
The top-level import of dispose_engine from cartsnitch_api.database caused ImportError at module scope because dispose_engine was not available when main.py was loaded. The function is only used inside the lifespan context manager, so move the import there. Fixes: ImportError cannot import name 'dispose_engine' from 'cartsnitch_api.database' Co-Authored-By: Paperclip <noreply@paperclip.ing>