Skip to content

Commit

Permalink
Core & Internals: sqla20 conversion fixes in rule.py
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingstaff committed Mar 11, 2024
1 parent 89f0e05 commit 2eea44f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rucio/core/rule.py
Expand Up @@ -950,9 +950,9 @@ def list_rules(filters: dict[str, Any] = {}, *, session: "Session") -> Iterator[
stmt = stmt.where(getattr(models.ReplicationRule, key) == value)

try:
for item in session.execute(stmt).yield_per(5):
d = item[0].to_dict()
d['bytes'] = item[1]
for rule, data_identifier_bytes in session.execute(stmt).yield_per(5):
d = rule.to_dict()
d['bytes'] = data_identifier_bytes
yield d
except StatementError as exc:
raise RucioException('Badly formatted input (IDs?)') from exc
Expand Down

0 comments on commit 2eea44f

Please sign in to comment.