Merge pull request #662 from xmo-odoo/master-simplify-bit-xmo

Simplify bit of code
This commit is contained in:
xmo-odoo 2014-06-20 09:28:41 +02:00
commit 003e910e61
1 changed files with 1 additions and 1 deletions

View File

@ -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():