Skip to content

Commit

Permalink
Core & Internals: fix double assignment to the same variable; #6678
Browse files Browse the repository at this point in the history
  • Loading branch information
rdimaio authored and bari12 committed Apr 23, 2024
1 parent 729caa2 commit 62a6dbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rucio/core/did_meta_plugins/mongo_meta.py
Expand Up @@ -166,7 +166,7 @@ def list_dids(self, scope, filters, did_type='collection', ignore_case=False, li
if limit:
query_result = query_result.limit(limit)
for did in query_result:
did_full = did_full = "{}:{}".format(did['scope'], did['name'])
did_full = "{}:{}".format(did['scope'], did['name'])
if did_full not in ignore_dids: # aggregating recursive queries may contain duplicate DIDs
ignore_dids.add(did_full)
yield {
Expand All @@ -181,7 +181,7 @@ def list_dids(self, scope, filters, did_type='collection', ignore_case=False, li
if limit:
query_result = query_result.limit(limit)
for did in query_result:
did_full = did_full = "{}:{}".format(did['scope'], did['name'])
did_full = "{}:{}".format(did['scope'], did['name'])
if did_full not in ignore_dids: # aggregating recursive queries may contain duplicate DIDs
ignore_dids.add(did_full)
yield did['name']
Expand Down

0 comments on commit 62a6dbb

Please sign in to comment.