File tree 2 files changed +0
-14
lines changed
2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -999,10 +999,6 @@ def get_signal_data(
999
999
).filter (cast (SignalFilter .expression , JSONB ).op ("@>" )(entity_subquery ))
1000
1000
1001
1001
snooze_result = db_session .execute (query ).fetchone ()
1002
- if snooze_result :
1003
- print (
1004
- f"Active Count: { snooze_result .active_count } , Expired Count: { snooze_result .expired_count } "
1005
- )
1006
1002
1007
1003
# Calculate the date threshold based on num_days
1008
1004
date_threshold = datetime .utcnow () - timedelta (days = num_days ) if num_days is not None else None
@@ -1037,11 +1033,6 @@ def get_signal_data(
1037
1033
)
1038
1034
1039
1035
signal_result = db_session .execute (query ).fetchone ()
1040
- if signal_result :
1041
- print (
1042
- f"Count with Snooze: { signal_result .count_with_snooze } , "
1043
- f"Count without Snooze: { signal_result .count_without_snooze } "
1044
- )
1045
1036
1046
1037
return SignalData (
1047
1038
num_signals_alerted = signal_result .count_without_snooze ,
Original file line number Diff line number Diff line change @@ -297,11 +297,6 @@ def return_signal_data(
297
297
entity_type_id = entity_type_id ,
298
298
num_days = num_days ,
299
299
)
300
- if not signal_data :
301
- raise HTTPException (
302
- status_code = status .HTTP_404_NOT_FOUND ,
303
- detail = [{"msg" : "No signals with that entity name were found." }],
304
- )
305
300
return signal_data
306
301
307
302
You can’t perform that action at this time.
0 commit comments