Skip to content

Commit

Permalink
Add fallback for process image retrieval in get_process_image function (
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorwalton authored Dec 19, 2024
1 parent c6e8afd commit 23e2fc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/app/incidents/services/incident_alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ def get_process_image(source_dict: dict) -> str:
process_image = source_dict.get("data_win_eventdata_image")
if not process_image:
process_image = source_dict.get("data_event_Image")
if not process_image:
process_image = source_dict.get("data_win_eventdata_sourceImage")
logger.info(f"Process image: {process_image}")
return process_image

Expand Down

0 comments on commit 23e2fc2

Please sign in to comment.