diff --git a/cron.py b/cron.py index 1aa36f2a..92f721d4 100644 --- a/cron.py +++ b/cron.py @@ -59,7 +59,6 @@ from app.models import ( HibpNotifiedAlias, ) from app.utils import sanitize_email -from server import create_app def notify_trial_end(): diff --git a/email_handler.py b/email_handler.py index bf9ecb29..1f6dda19 100644 --- a/email_handler.py +++ b/email_handler.py @@ -140,7 +140,7 @@ from app.models import ( from app.pgp_utils import PGPException, sign_data_with_pgpy, sign_data from app.utils import sanitize_email from init_app import load_pgp_public_keys -from server import create_app, create_light_app +from server import create_light_app newrelic_app = None if NEWRELIC_CONFIG_PATH: diff --git a/init_app.py b/init_app.py index 108194e0..b22b7f0a 100644 --- a/init_app.py +++ b/init_app.py @@ -3,7 +3,6 @@ from app.db import Session from app.log import LOG from app.models import Mailbox, Contact, SLDomain from app.pgp_utils import load_public_key -from server import create_app def load_pgp_public_keys(): diff --git a/monitoring.py b/monitoring.py index 6a28e5ca..89651c5a 100644 --- a/monitoring.py +++ b/monitoring.py @@ -5,7 +5,6 @@ from app.config import HOST from app.db import Session from app.log import LOG from app.models import Monitoring -from server import create_app # the number of consecutive fails # if more than _max_nb_fails, alert