mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix backup test broken
This commit is contained in:
parent
fa02915eb9
commit
39d0693816
@ -26,7 +26,7 @@ class MetadataBackup(Thread):
|
||||
def __init__(self, db, interval=2, scheduling_interval=0.1):
|
||||
Thread.__init__(self)
|
||||
self.daemon = True
|
||||
self._db = weakref.ref(db.new_api)
|
||||
self._db = weakref.ref(getattr(db, 'new_api', db))
|
||||
self.stop_running = Event()
|
||||
self.interval = interval
|
||||
self.scheduling_interval = scheduling_interval
|
||||
|
Loading…
x
Reference in New Issue
Block a user