Skip to content

Commit

Permalink
Jonatan/mon 2665 fix data ingetion bug (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
JKL98ISR authored Feb 10, 2025
1 parent 83a8f76 commit 171fec7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/deepchecks_monitoring/api/v1/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@ def truncate_date(col, agg_time_unit: str = "day"):

union_q = sa.union_all(*model_queries)

if not model_queries:
return {}

rows = (await session.execute(
sa.select(union_q.c.model_id, union_q.c.timestamp, union_q.c.count, union_q.c.label_count)
)).fetchall()
Expand Down

0 comments on commit 171fec7

Please sign in to comment.