forked from platypush/platypush
A cleaner way of calculating the success
response attribute.
This commit is contained in:
parent
2dfb389630
commit
70d1bb893c
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class Response(Message):
|
||||||
the message into a UTF-8 JSON string
|
the message into a UTF-8 JSON string
|
||||||
"""
|
"""
|
||||||
output = (
|
output = (
|
||||||
self.output if self.output is not None else {'success': bool(self.errors)}
|
self.output if self.output is not None else {'success': not self.errors}
|
||||||
)
|
)
|
||||||
|
|
||||||
response_dict = {
|
response_dict = {
|
||||||
|
|
Loading…
Reference in a new issue