From d8d9d5a145f0c4ed57806ea9f8674f423c75abd3 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Thu, 7 Dec 2017 09:17:22 +0100 Subject: [PATCH] fix: getDates was omitting dates --- helpers/users_helper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helpers/users_helper.py b/helpers/users_helper.py index 459708b..815a8e3 100644 --- a/helpers/users_helper.py +++ b/helpers/users_helper.py @@ -58,6 +58,8 @@ class Users_helper: t = datetime.datetime.fromtimestamp(float(t[1])) if util.getDateStrFormat(t) == util.getDateStrFormat(date): #same day to_return.append(t) + elif util.getDateStrFormat(t) > util.getDateStrFormat(date): + continue # timestamps should be sorted, skipping to reach wanted date else: break # timestamps should be sorted, no need to process anymore return to_return