temptours+tours
This commit is contained in:
7
engine/engine_components/active_courses.py
Normal file
7
engine/engine_components/active_courses.py
Normal file
@ -0,0 +1,7 @@
|
||||
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]
|
||||
Reference in New Issue
Block a user