Update desktop.py

This commit is contained in:
Nabin Hait 2017-02-24 11:30:03 +05:30 committed by GitHub
parent e7601d2357
commit cdc168586a

View file

@ -20,6 +20,4 @@ def get_help_messages():
for fn in frappe.get_hooks('get_help_messages'):
messages += frappe.get_attr(fn)()
print sorted(messages, lambda a, b: cmp(a.get('count'), b.get('count')))
return sorted(messages, lambda a, b: cmp(a.get('count'), b.get('count')))
return sorted(messages, lambda a, b: cmp(a.get('count'), b.get('count')))