1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-26 10:00:37 +00:00
This commit is contained in:
OzzieIsaacs 2018-07-15 15:14:26 +02:00
parent 0e83546d40
commit f0459d577b

View File

@ -1318,7 +1318,7 @@ def toggle_read(book_id):
read_status[0].value = not read_status[0].value read_status[0].value = not read_status[0].value
db.session.commit() db.session.commit()
else: 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) new_cc = cc_class(value=1, book=book_id)
db.session.add(new_cc) db.session.add(new_cc)
db.session.commit() db.session.commit()