|
|
|
@ -149,10 +149,10 @@ def get_subscriptions(basepath: str = BASEPATH,
|
|
|
|
|
filename: str = DB_FILE_NAME) -> list[tuple[str, str]]:
|
|
|
|
|
subscriptions = list()
|
|
|
|
|
fullpath = path.join(basepath, filename)
|
|
|
|
|
try:
|
|
|
|
|
con = sqlite3.connect(fullpath)
|
|
|
|
|
cur = con.cursor()
|
|
|
|
|
select_query = '''SELECT * FROM {}'''.format(SUB_TABLE)
|
|
|
|
|
try:
|
|
|
|
|
cur.execute(select_query)
|
|
|
|
|
for result in cur.fetchall():
|
|
|
|
|
subscriptions.append(result)
|
|
|
|
|