remove the print statements
This commit is contained in:
parent
8413f76c19
commit
1f4b530e68
@ -13,8 +13,6 @@ from erpnext.accounts.utils import get_currency_precision
|
|||||||
def get_leaderboard(doctype, timespan, field, start=0):
|
def get_leaderboard(doctype, timespan, field, start=0):
|
||||||
"""return top 10 items for that doctype based on conditions"""
|
"""return top 10 items for that doctype based on conditions"""
|
||||||
|
|
||||||
print('doctype', doctype, timespan, field, start)
|
|
||||||
|
|
||||||
filters = {"modified":(">=", get_date_from_string(timespan))}
|
filters = {"modified":(">=", get_date_from_string(timespan))}
|
||||||
items = []
|
items = []
|
||||||
if doctype == "Customer":
|
if doctype == "Customer":
|
||||||
@ -85,8 +83,6 @@ def get_all_items(doctype, filters, items, field, start=0, limit=20):
|
|||||||
"value": value}
|
"value": value}
|
||||||
items.append(item_obj)
|
items.append(item_obj)
|
||||||
|
|
||||||
print(items)
|
|
||||||
|
|
||||||
items.sort(key=lambda k: k['value'], reverse=True)
|
items.sort(key=lambda k: k['value'], reverse=True)
|
||||||
return items
|
return items
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user