fix: correct usage of redis key import

pull/12/head
Sami Mokaddem 2017-11-29 17:10:27 +01:00
parent a8e8520b81
commit c93859136d
1 changed files with 3 additions and 1 deletions

View File

@ -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))