Move inline import to top of file

Usually we have imports at the top. It looks like the reason for
them being inline was to avoid a circular import, but we can also
avoid this by not importing everything from the app module.

Since we're about to add more imports from event_handlers, now is
a good time to refactor them. Note this matches how we import the
event handlers in every other module.
This commit is contained in:
Ben Thorner
2021-07-15 11:18:36 +01:00
parent d414e6d345
commit 0f87ffe093
4 changed files with 6 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
from flask import request
from app import events_api_client
from app.notify_client.events_api_client import events_api_client
EVENT_SCHEMAS = {
"sucessful_login": {"user_id"},