File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -916,8 +916,9 @@ def status_flow_dispatcher(
916
916
"""Runs the correct flows depending on the incident's current and previous status."""
917
917
# we have a currently active incident
918
918
if current_status == IncidentStatus .active :
919
- # re-activate incident
920
- incident_active_status_flow (incident = incident , db_session = db_session )
919
+ if previous_status == IncidentStatus .closed :
920
+ # re-activate incident
921
+ incident_active_status_flow (incident = incident , db_session = db_session )
921
922
send_incident_report_reminder (incident , ReportTypes .tactical_report , db_session )
922
923
923
924
# we currently have a stable incident
@@ -934,7 +935,6 @@ def status_flow_dispatcher(
934
935
if previous_status == IncidentStatus .active :
935
936
incident_stable_status_flow (incident = incident , db_session = db_session )
936
937
incident_closed_status_flow (incident = incident , db_session = db_session )
937
-
938
938
elif previous_status == IncidentStatus .stable :
939
939
incident_closed_status_flow (incident = incident , db_session = db_session )
940
940
You can’t perform that action at this time.
0 commit comments