Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
    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
Ejemplo n.º 3
0
    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
Ejemplo n.º 4
0
 def get_game(self, index):
     top_game = querry_database('SELECT * FROM Game')
     return top_game[index - 1]