Skip to content

Commit

Permalink
Trying to resolve an error with the task log.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfunk committed Jun 7, 2023
1 parent 901042a commit 8755bc8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crc/models/task_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ class Meta:
def get_category(obj):
if hasattr(obj, 'workflow_spec_id') and obj.workflow_spec_id is not None:
workflow_spec = WorkflowSpecService().get_spec(obj.workflow_spec_id)
category = WorkflowSpecService().get_category(workflow_spec.category_id)
if category:
return category.display_name
if workflow_spec:
category = WorkflowSpecService().get_category(workflow_spec.category_id)
if category:
return category.display_name

@staticmethod
def get_workflow(obj):
Expand Down

0 comments on commit 8755bc8

Please sign in to comment.