class DataReader: challenges = [] users = [] json = None def __init__(self): self.json = JsonHandler() self.challenges = self.json.decode_file('challenges.json') self.users = self.json.decode_file('users.json')
def __init__(self): self.json = JsonHandler() self.challenges = self.json.decode_file('challenges.json') self.users = self.json.decode_file('users.json')