Skip to content
Snippets Groups Projects
Commit 64762086 authored by Xavier Morel's avatar Xavier Morel
Browse files

[IMP] unpack a listcomp in a dict passed to an update, pass gencomp directly to update

parent 981362b2
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ class Graph(dict):
)
## and we update the default values with values from the database
additional_data.update(dict([(x.pop('name'), x) for x in cr.dictfetchall()]))
additional_data.update((x['name'], x) for x in cr.dictfetchall())
for package in self.values():
for k, v in additional_data[package.name].items():
......
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