mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
fix media not working after full sync
This commit is contained in:
parent
ef55c0a2ee
commit
d99ea0c7a0
1 changed files with 2 additions and 0 deletions
|
@ -271,6 +271,8 @@ class Collection:
|
|||
media_db_path=media_db,
|
||||
log_path=log_path,
|
||||
)
|
||||
else:
|
||||
self.media.connect()
|
||||
self.db = DBProxy(weakref.proxy(self.backend))
|
||||
self.db.begin()
|
||||
|
||||
|
|
Loading…
Reference in a new issue