Searching for call activities seems to be working now.

I had the clear_caches in the wrong place previously - fixing.
This commit is contained in:
Dan 2022-11-16 16:53:51 -05:00
parent 5cb7dce9de
commit 5c4e633bb2
2 changed files with 2 additions and 2 deletions

View File

@ -354,7 +354,7 @@ def process_list() -> Any:
This includes processes that are not the
primary process - helpful for finding possible call activities.
"""
references = SpecReferenceCache.query.filter_by(type="process")
references = SpecReferenceCache.query.filter_by(type="process").all()
return SpecReferenceSchema(many=True).dump(references)

View File

@ -27,9 +27,9 @@ class DataSetupService:
current_app.logger.debug("DataSetupService.save_all_process_models() start")
failing_process_models = []
process_models = ProcessModelService().get_process_models()
SpecFileService.clear_caches()
for process_model in process_models:
current_app.logger.debug(f"Process Model: {process_model.display_name}")
SpecFileService.clear_caches()
try:
refs = SpecFileService.get_references_for_process(process_model)
for ref in refs: