Merge pull request #12130 from manassolanki/leaderboard

remove the print statements
This commit is contained in:
Manas Solanki 2017-12-21 13:04:25 +05:30 committed by GitHub
commit 45cb791878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,8 +13,6 @@ from erpnext.accounts.utils import get_currency_precision
def get_leaderboard(doctype, timespan, field, start=0):
"""return top 10 items for that doctype based on conditions"""
print('doctype', doctype, timespan, field, start)
filters = {"modified":(">=", get_date_from_string(timespan))}
items = []
if doctype == "Customer":
@ -85,8 +83,6 @@ def get_all_items(doctype, filters, items, field, start=0, limit=20):
"value": value}
items.append(item_obj)
print(items)
items.sort(key=lambda k: k['value'], reverse=True)
return items