Skip to content

Commit

Permalink
Update manager/manager/utils.py
Browse files Browse the repository at this point in the history
applied suggestion

Co-authored-by: Sebastian Aranda Sanchez <[email protected]>
  • Loading branch information
Vebop and sebastian-aranda authored Aug 22, 2024
1 parent 4d00564 commit d3dd21f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manager/manager/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,11 @@ def jira_comment(request_data):
response = requests.post(url, json=jira_payload, headers=headers)

if "time_lost" in request_data:
update_time_loss(
response = update_time_loss(
jira_id=jira_id, add_time_loss=request_data.get("time_lost", 0.0)
)
if response.status_code == 400:
return response

if response.status_code == 201:
return Response(
Expand Down

0 comments on commit d3dd21f

Please sign in to comment.