subscriptions: fix sqlite3.Row access (no .get() method)
This commit is contained in:
parent
893c9cbb15
commit
b3426b2494
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ def handle_subscriptions(msg=""):
|
||||||
for s in subs:
|
for s in subs:
|
||||||
sub_id = s["id"]
|
sub_id = s["id"]
|
||||||
auto_label = "on" if s["auto_sync"] else "off"
|
auto_label = "on" if s["auto_sync"] else "off"
|
||||||
forum_label = "on" if s.get("forum_enabled") else "off"
|
forum_label = "on" if s["forum_enabled"] else "off"
|
||||||
last = s["last_sync"] or "never"
|
last = s["last_sync"] or "never"
|
||||||
sync_status = get_setting(f"sync_status_{sub_id}", "")
|
sync_status = get_setting(f"sync_status_{sub_id}", "")
|
||||||
is_syncing = sub_id in _sync_threads and _sync_threads[sub_id].is_alive()
|
is_syncing = sub_id in _sync_threads and _sync_threads[sub_id].is_alive()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue