8 lines
224 B
Python
8 lines
224 B
Python
from typing import List
|
|
|
|
def get_active_con_ids(cur) -> List[int]:
|
|
sql = "SELECT con_id FROM reader_config WHERE rea_active = 1"
|
|
cur.execute(sql)
|
|
rows = cur.fetchall()
|
|
return [int(r["con_id"]) for r in rows]
|