Skip to content

Commit

Permalink
suppress warning import-outside-toplevel
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Sep 2, 2024
1 parent bb2d868 commit 3619912
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions onadata/apps/logger/models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3619912

Please sign in to comment.