Skip to content
Snippets Groups Projects
Commit 366169a8 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Fix another dict iteration

parent 8ef28f72
No related branches found
No related tags found
1 merge request!885Revised CalCat API
......@@ -77,7 +77,7 @@ class ModulesConstantVersions:
constants: Dict[str, SingleConstantVersion] # Keys e.g. 'LPD00'
def select_modules(self, *aggregators) -> "ModulesConstantVersions":
d = {aggr: scv for (aggr, scv) in self.constants if aggr in aggregators}
d = {aggr: scv for (aggr, scv) in self.constants.items() if aggr in aggregators}
return ModulesConstantVersions(d)
@property
......
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