From 5b0815e05743ab1d7db4eea095a92bbb24c135f3 Mon Sep 17 00:00:00 2001 From: kdxcxs Date: Wed, 4 Nov 2020 13:04:57 +0800 Subject: [PATCH] fix: remove duplicated lines --- dao.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()