From 36199121af542252ed57107479b17e69ae9d2826 Mon Sep 17 00:00:00 2001 From: Kelvin Muchiri Date: Mon, 2 Sep 2024 18:50:25 +0300 Subject: [PATCH] suppress warning import-outside-toplevel --- onadata/apps/logger/models/instance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/onadata/apps/logger/models/instance.py b/onadata/apps/logger/models/instance.py index 5157f4b3d7..b487cd123d 100644 --- a/onadata/apps/logger/models/instance.py +++ b/onadata/apps/logger/models/instance.py @@ -266,6 +266,7 @@ def update_xform_submission_count(instance_id, created): safe_delete(f"{DATAVIEW_COUNT}{instance.xform_id}") safe_delete(f"{XFORM_COUNT}{instance.xform_id}") # Clear project cache + # pylint: disable=import-outside-toplevel from onadata.apps.logger.models.xform import clear_project_cache clear_project_cache(instance.xform.project_id)