From f0459d577b7dc8fa4c6765e6a1a00577b6a6a23c Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sun, 15 Jul 2018 15:14:26 +0200 Subject: [PATCH] Bugfix #409 --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index fc690058..83acd497 100755 --- a/cps/web.py +++ b/cps/web.py @@ -1318,7 +1318,7 @@ def toggle_read(book_id): read_status[0].value = not read_status[0].value db.session.commit() else: - cc_class = db.cc_classes[cc_id] + cc_class = db.cc_classes[config.config_read_column] new_cc = cc_class(value=1, book=book_id) db.session.add(new_cc) db.session.commit()