From 53c1d762246b601aa9706f94c1265910381e5e5c Mon Sep 17 00:00:00 2001 From: Florian Bach Date: Fri, 12 May 2023 08:22:18 +0200 Subject: [PATCH] Fix books not being added to loan list --- calibre-plugin/libadobeFulfill.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/calibre-plugin/libadobeFulfill.py b/calibre-plugin/libadobeFulfill.py index 7fc65fb..6026086 100644 --- a/calibre-plugin/libadobeFulfill.py +++ b/calibre-plugin/libadobeFulfill.py @@ -579,7 +579,8 @@ def addLoanRecordToConfigFile(new_loan_record): except: print("Exception while reading config file") return False - + + deacsmprefs.refresh() # Check if that exact loan is already in the list, and if so, delete it: done = False @@ -597,6 +598,7 @@ def addLoanRecordToConfigFile(new_loan_record): # books, and can then return them. # Also, the config widget is responsible for cleaning up that list once a book's validity period is up. deacsmprefs["list_of_rented_books"].append(new_loan_record) + deacsmprefs.commit() return True