Skip to content
Snippets Groups Projects
Commit a662f68c authored by AndiMajore's avatar AndiMajore
Browse files

fixed dataset loading

parent 4f322e97
No related branches found
No related tags found
No related merge requests found
Pipeline #63865 failed
......@@ -234,14 +234,12 @@ def create_network(request) -> Response:
def latest_datasets(ds):
dataset_dict = {}
for d in ds:
print(d)
name = d.name+"_"+str(d.licenced)
if name not in dataset_dict:
dataset_dict[name] = d
continue
if dataset_dict[name].version < d.version:
dataset_dict[name] = d
print(dataset_dict)
return dataset_dict.values()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment