git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cast instead of rebuilding dict when returning lists of dicts
[plcapi.git]
/
PLC
/
Methods
/
GetPersons.py
diff --git
a/PLC/Methods/GetPersons.py
b/PLC/Methods/GetPersons.py
index
1e3fa3b
..
a6fbc10
100644
(file)
--- a/
PLC/Methods/GetPersons.py
+++ b/
PLC/Methods/GetPersons.py
@@
-62,6
+62,6
@@
class GetPersons(Method):
persons = filter(self.caller.can_view, persons.values())
# Turn each person into a real dict.
- persons = [dict(person
.items()
) for person in persons]
+ persons = [dict(person) for person in persons]
return persons