Skip to content

Commit

Permalink
Core & Internals: Regression fix for judge #6569
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingstaff authored and bari12 committed Mar 15, 2024
1 parent 1fc0c97 commit 7537063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rucio/core/rule.py
Expand Up @@ -2113,8 +2113,8 @@ def get_updated_dids(
stmt = stmt.where(tuple_(models.UpdatedDID.scope, models.UpdatedDID.name).notin_(chunk))

if limit:
fetched_dids = stmt.order_by(models.UpdatedDID.created_at).limit(limit).all()
filtered_dids = [did for did in fetched_dids if (did.scope, did.name) not in blocked_dids]
fetched_dids = session.execute(stmt.order_by(models.UpdatedDID.created_at).limit(limit)).all()
filtered_dids = [did._tuple() for did in fetched_dids if (did.scope, did.name) not in blocked_dids]
if len(fetched_dids) == limit and not filtered_dids:
return get_updated_dids(total_workers=total_workers,
worker_number=worker_number,
Expand Down

0 comments on commit 7537063

Please sign in to comment.