mirror of
https://github.com/Leseratte10/acsm-calibre-plugin.git
synced 2024-12-22 09:19:55 +06:00
Fix books not being added to loan list
This commit is contained in:
parent
a7013047d2
commit
53c1d76224
@ -579,7 +579,8 @@ def addLoanRecordToConfigFile(new_loan_record):
|
|||||||
except:
|
except:
|
||||||
print("Exception while reading config file")
|
print("Exception while reading config file")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
deacsmprefs.refresh()
|
||||||
|
|
||||||
# Check if that exact loan is already in the list, and if so, delete it:
|
# Check if that exact loan is already in the list, and if so, delete it:
|
||||||
done = False
|
done = False
|
||||||
@ -597,6 +598,7 @@ def addLoanRecordToConfigFile(new_loan_record):
|
|||||||
# books, and can then return them.
|
# 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.
|
# 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["list_of_rented_books"].append(new_loan_record)
|
||||||
|
deacsmprefs.commit()
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user