From a8c3ebe4189b3e548dcd3adbab167c44106448e8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 19 Sep 2020 22:30:23 +0530 Subject: [PATCH] Add to_raw() needed by some plugins apparently --- src/calibre/db/legacy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calibre/db/legacy.py b/src/calibre/db/legacy.py index 0b0ebdf41f..7bb0d6c0dc 100644 --- a/src/calibre/db/legacy.py +++ b/src/calibre/db/legacy.py @@ -149,6 +149,10 @@ class ThreadSafePrefs(MutableMapping): prefs = self.db().backend.prefs prefs.write_serialized(library_path) + def to_raw(self, val): + prefs = self.db().backend.prefs + return prefs.to_raw(val) + class LibraryDatabase(object):