|
|
|
@ -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)
|
|
|
|
|
con = sqlite3.connect(fullpath)
|
|
|
|
|
cur = con.cursor()
|
|
|
|
|
select_query = '''SELECT * FROM {}'''.format(SUB_TABLE)
|
|
|
|
|
try:
|
|
|
|
|
con = sqlite3.connect(fullpath)
|
|
|
|
|
cur = con.cursor()
|
|
|
|
|
select_query = '''SELECT * FROM {}'''.format(SUB_TABLE)
|
|
|
|
|
cur.execute(select_query)
|
|
|
|
|
for result in cur.fetchall():
|
|
|
|
|
subscriptions.append(result)
|
|
|
|
|