diff --git a/qt/aqt/addcards.py b/qt/aqt/addcards.py index 121ff145e..5a8d07607 100644 --- a/qt/aqt/addcards.py +++ b/qt/aqt/addcards.py @@ -7,7 +7,7 @@ import aqt.deckchooser import aqt.editor import aqt.forms import aqt.modelchooser -from anki.backend_pb2 import SearchTerm +from anki.collection import SearchTerm from anki.consts import MODEL_CLOZE from anki.notes import Note from anki.utils import htmlToTextLine, isMac diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index be48c8a24..15bf68d93 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -20,8 +20,8 @@ from bs4 import BeautifulSoup import aqt import aqt.sound -from anki.backend_pb2 import SearchTerm from anki.cards import Card +from anki.collection import SearchTerm from anki.hooks import runFilter from anki.httpclient import HttpClient from anki.notes import Note diff --git a/qt/aqt/mediacheck.py b/qt/aqt/mediacheck.py index d6129e5ce..50bf66f0e 100644 --- a/qt/aqt/mediacheck.py +++ b/qt/aqt/mediacheck.py @@ -9,7 +9,7 @@ from concurrent.futures import Future from typing import Iterable, List, Optional, Sequence, TypeVar import aqt -from anki.backend_pb2 import SearchTerm +from anki.collection import SearchTerm from anki.rsbackend import TR, Interrupted, ProgressKind, pb from aqt.qt import * from aqt.utils import (