From c93859136da9962654c8b1a30485f45329f3498d Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Wed, 29 Nov 2017 17:10:27 +0100 Subject: [PATCH] fix: correct usage of redis key import --- users_helper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/users_helper.py b/users_helper.py index 2932793..80ad79f 100644 --- a/users_helper.py +++ b/users_helper.py @@ -4,7 +4,7 @@ import json import datetime, time import util -from users_helper import keyDay as keyContribDay +import contributor_helper class Users_helper: def __init__(self, serv_redis_db, cfg): @@ -14,6 +14,8 @@ class Users_helper: self.keyTimestamp = "LOGIN_TIMESTAMP" self.keyTimestampSet = "LOGIN_TIMESTAMPSET" self.keyOrgLog = "LOGIN_ORG" + contrib_helper = contributor_helper.Contributor_helper(serv_redis_db, cfg) + self.keyContribDay = contrib_helper.keyDay # Key to get monthly contribution def addTemporary(self, org, timestamp): timestampDate = datetime.datetime.fromtimestamp(float(timestamp))