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
blind 2to3
[plcapi.git]
/
PLC
/
Methods
/
GetPCUs.py
diff --git
a/PLC/Methods/GetPCUs.py
b/PLC/Methods/GetPCUs.py
index
8b3b91f
..
c59fa40
100644
(file)
--- a/
PLC/Methods/GetPCUs.py
+++ b/
PLC/Methods/GetPCUs.py
@@
-62,7
+62,7
@@
class GetPCUs(Method):
# Filter out PCUs that are not viewable
if not (isinstance(self.caller, Person) and 'admin' in self.caller['roles']):
# Filter out PCUs that are not viewable
if not (isinstance(self.caller, Person) and 'admin' in self.caller['roles']):
- pcus =
filter(lambda pcu: pcu['pcu_id'] in valid_pcu_ids, pcus)
+ pcus =
[pcu for pcu in pcus if pcu['pcu_id'] in valid_pcu_ids]
# Remove pcu_id if not specified
if added_fields:
# Remove pcu_id if not specified
if added_fields: