Remove unneeded re-import of anki.db

This commit is contained in:
Michal Pokorný (Rai) 2019-12-27 17:22:53 +01:00
parent 7abd58382f
commit 1ea0bb3453

View File

@ -261,10 +261,8 @@ crt=?, mod=?, scm=?, dty=?, usn=?, ls=?, conf=?""",
def reopen(self) -> None:
"Reconnect to DB (after changing threads, etc)."
import anki.db
if not self.db:
self.db = anki.db.DB(self.path)
self.db = DB(self.path)
self.media.connect()
self._openLog()