Skip to content

Commit

Permalink
Merge pull request #206 from CogStack/fix-metrics
Browse files Browse the repository at this point in the history
CU-8695w36y1: fix for metric report loading
  • Loading branch information
tomolopolis authored Sep 19, 2024
2 parents 4ee479b + 7566239 commit 1c47e7c
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 1c47e7c

Please sign in to comment.