diff --git a/dao.py b/dao.py index 5690125..a91ed90 100644 --- a/dao.py +++ b/dao.py @@ -26,7 +26,7 @@ def get_list(): base_cursor = db_connection.cursor() for sports_type in sports_types: for sports_name in sports_types[sports_type]: - type_cursor = base_cursor.execute(f'SELECT username FROM list ' + type_cursor = base_cursor.execute(f'SELECT DISTINCT username FROM list ' f'WHERE program_type="{sports_type}" ' f'AND program_name="{sports_name}";') current_list = type_cursor.fetchall()