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

fixed dataset loading

Former-commit-id: afbae6d05f120620002da6e71872ae8e4897e1df [formerly cfe2502bf736cc08d94ab998801cbe397c3f6208]
Former-commit-id: 68eebb61371561b13bb9a0d8af1c7126e4ab706f
parent b1ae8949
No related branches found
No related tags found
No related merge requests found
......@@ -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.
Please register or to comment