File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def render(
101101 JobSchedule .kwargs ["test_suite_id" ].astext == str (monitor_suite_id ),
102102 )
103103
104- anomaly_type_filter = [t for t in anomaly_type_filter .split ("," ) if t in ANOMALY_TYPE_FILTERS ] if anomaly_type_filter else []
104+ anomaly_type_filter = [t for t in anomaly_type_filter .split ("," ) if t in ANOMALY_TYPE_FILTERS ] if anomaly_type_filter else None
105105 if sort_field and sort_field not in ALLOWED_SORT_FIELDS :
106106 sort_field = None
107107
@@ -148,7 +148,7 @@ def render(
148148 "filters" : {
149149 "table_group_id" : table_group_id ,
150150 "table_name_filter" : table_name_filter ,
151- "anomaly_type_filter" : list (anomaly_type_filter ),
151+ "anomaly_type_filter" : list (anomaly_type_filter ) if anomaly_type_filter else None ,
152152 },
153153 "sort" : {
154154 "sort_field" : sort_field ,
You can’t perform that action at this time.
0 commit comments