Skip to content

Commit

Permalink
fix query
Browse files Browse the repository at this point in the history
  • Loading branch information
sastels committed Mar 19, 2024
1 parent 5fa829e commit 924030d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/dao/jobs_dao.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def dao_get_jobs_older_than_data_retention(notification_types, limit=None):
.order_by(desc(Job.created_at))
)
if limit:
query = query.limit(limit)
query = query.limit(limit - len(jobs))
jobs.extend(query.all())

end_date = today - timedelta(days=7)
Expand Down

0 comments on commit 924030d

Please sign in to comment.