remove the print statements

This commit is contained in:
Manas Solanki 2017-12-21 12:57:43 +05:30
parent 8413f76c19
commit 1f4b530e68

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