Skip to content

Commit

Permalink
CU-8695w36y1: fix for metric report loading
Browse files Browse the repository at this point in the history
  • Loading branch information
tomolopolis committed Sep 19, 2024
1 parent 4ee479b commit 7566239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/api/api/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def calculate_metrics(project_ids: List[int], report_name: str):
"""
logger.info('Calculating metrics for report: %s', report_name)
projects = [ProjectAnnotateEntities.objects.filter(id=p_id).first() for p_id in project_ids]
if projects[0].cdb is None:
if projects[0].model_pack:
# assume the model pack is set.
cat = CAT.load_model_pack(projects[0].model_pack.model_pack.path)
else:
Expand Down

0 comments on commit 7566239

Please sign in to comment.