def get_users(self): user_result = querry_database('SELECT * FROM User') users = [] for row in user_result: user = User(row) users.append(user) return users
def get_activity(self): activity_result = querry_database('SELECT * FROM Activity') activities = [] for row in activity_result: activity = Activity(row) activities.append(activity) return activities
def get_groups(self): group_result = querry_database('SELECT * FROM Groupings') groups = [] for grp in group_result: group = Group(grp) groups.append(group) return groups
def get_game(self, index): top_game = querry_database('SELECT * FROM Game') return top_game[index - 1]