def getCommonKeys(self, users): """ get common keys of a list of users """ return LKH.getCommonKeys(self.dbfile, users)
def getKey(self, userid): """Get the key of corresponding to a user-id """ return LKH.getUserKey(self.dbfile, userid)
def __init__(self, dbfile): super(KPIDB, self).__init__() self.dbfile = dbfile self.rootKey = LKH.getKey(dbfile, 1) info = LKH.getInfo(self.dbfile) self.max_user_id = info.max_user_id
def __init__(self, dbfile): super(KPIDB,self).__init__() self.dbfile = dbfile self.rootKey = LKH.getKey(dbfile, 1) info = LKH.getInfo(self.dbfile) self.max_user_id = info.max_user_id