From 412e009884875d00843bf0db8e9251e11eebe72f Mon Sep 17 00:00:00 2001
From: Fabian Krueger <fabian.krueger@fau.de>
Date: Fri, 20 Sep 2019 17:13:23 +0200
Subject: [PATCH] removed old, unused function

---
 store/backend.py | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/store/backend.py b/store/backend.py
index 24321e6..78ab42f 100644
--- a/store/backend.py
+++ b/store/backend.py
@@ -38,21 +38,6 @@ class UserLogic:
     @config-param max_users: the maximum of users that should be shown from the most recent ones. Depends on N_USERS_LOGIN
     @config-param max_days: the maximum of days that have passed since the last login to count as recent login. Depends on T_USERS_LOGIN_D
     """
-    # @staticmethod
-    # def getFrequentUsersList():
-    #     max_users = config['N_USERS_LOGIN']
-    #     max_days = config['T_USERS_LOGIN_D']
-    #     time_stamp = date.today() - timedelta(days=max_days)
-    #     logins = Login.objects.filter(time_stamp__gte=time_stamp.strftime("%Y-%m-%d") + " 00:00")
-    #     logins = logins.select_related('user')
-    #     logins = logins.values('user__nickname', 'user__id')
-    #     logins = logins.annotate(total=Count('user__id'))
-    #     if max_users <= 0:
-    #         logins = logins.order_by('total').reverse()
-    #     else:
-    #         logins = logins.order_by('total').reverse()[:max_users]
-    #     return list(logins)
-
     @staticmethod
     def getFrequentUsersList():
         max_users = config['N_USERS_LOGIN']
-- 
GitLab