Skip to content

Commit 171fec7

Browse files
authored
Jonatan/mon 2665 fix data ingetion bug (#386)
1 parent 83a8f76 commit 171fec7

File tree

1 file changed

+3
-0
lines changed
  • backend/deepchecks_monitoring/api/v1

1 file changed

+3
-0
lines changed

backend/deepchecks_monitoring/api/v1/model.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,9 @@ def truncate_date(col, agg_time_unit: str = "day"):
368368

369369
union_q = sa.union_all(*model_queries)
370370

371+
if not model_queries:
372+
return {}
373+
371374
rows = (await session.execute(
372375
sa.select(union_q.c.model_id, union_q.c.timestamp, union_q.c.count, union_q.c.label_count)
373376
)).fetchall()

0 commit comments

Comments
 (0)