Skip to content

Commit

Permalink
Merge pull request #333 from PanDAWMS/ddmrefactor
Browse files Browse the repository at this point in the history
Fixed bug with overwritten dataset_name variable
  • Loading branch information
EdwardKaravakis authored Mar 27, 2024
2 parents 5b3705e + 7663239 commit 7c55aa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pandaserver/dataservice/ddm.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,13 +440,13 @@ def list_datasets(self, dataset_name: str, old: bool = False):
"""
result = {}
# extract scope from dataset
scope, dataset_name = self.extract_scope(dataset_name)
scope, given_dataset_name = self.extract_scope(dataset_name)
if dataset_name.endswith("/"):
dataset_name = dataset_name[:-1]
given_dataset_name = given_dataset_name[:-1]
collection = "container"
else:
collection = "dataset"
filters = {"name": dataset_name}
filters = {"name": given_dataset_name}
try:
# get dids
client = RucioClient()
Expand Down

0 comments on commit 7c55aa6

Please sign in to comment.