Skip to content

Commit 6476208

Browse files
committed
[IMP] unpack a listcomp in a dict passed to an update, pass gencomp directly to update
1 parent 981362b commit 6476208

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openerp/modules/graph.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def update_from_db(self, cr):
7878
)
7979

8080
## and we update the default values with values from the database
81-
additional_data.update(dict([(x.pop('name'), x) for x in cr.dictfetchall()]))
81+
additional_data.update((x['name'], x) for x in cr.dictfetchall())
8282

8383
for package in self.values():
8484
for k, v in additional_data[package.name].items():

0 commit comments

Comments
 (0)