From 1f4b530e682909a9fef497c862e0e889ac4f387b Mon Sep 17 00:00:00 2001 From: Manas Solanki Date: Thu, 21 Dec 2017 12:57:43 +0530 Subject: [PATCH] remove the print statements --- erpnext/utilities/page/leaderboard/leaderboard.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/erpnext/utilities/page/leaderboard/leaderboard.py b/erpnext/utilities/page/leaderboard/leaderboard.py index 50e8abfd75..6e7eabc826 100644 --- a/erpnext/utilities/page/leaderboard/leaderboard.py +++ b/erpnext/utilities/page/leaderboard/leaderboard.py @@ -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