Browse Source

fix: remove duplicated lines

master
kdxcxs 4 years ago
parent
commit
5b0815e057
  1. 2
      dao.py

2
dao.py

@ -26,7 +26,7 @@ def get_list():
base_cursor = db_connection.cursor() base_cursor = db_connection.cursor()
for sports_type in sports_types: for sports_type in sports_types:
for sports_name in sports_types[sports_type]: 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'WHERE program_type="{sports_type}" '
f'AND program_name="{sports_name}";') f'AND program_name="{sports_name}";')
current_list = type_cursor.fetchall() current_list = type_cursor.fetchall()

Loading…
Cancel
Save