Skip to content

Commit

Permalink
JA review: differentiate report update msg in log
Browse files Browse the repository at this point in the history
  • Loading branch information
aanil committed Jan 26, 2024
1 parent a2be3ba commit 4a007de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion daily_read/order_portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ def upload_report_to_order_portal(self, report, project, status):
response = requests.post(url, headers=self.headers, json=indata)

if response.status_code == 200:
log.info(f"Updated report for order with project id: {project.project_id}")
operation = "Updated" if report else "Hid"
log.info(f"{operation} report for order with project id: {project.project_id}")
return True
else:
log.error(
Expand Down

0 comments on commit 4a007de

Please sign in to comment.