From 5425b00d2b4d3d0e825ec1552d9de620df4bd3a3 Mon Sep 17 00:00:00 2001 From: RumovZ Date: Sat, 30 Jan 2021 12:51:24 +0100 Subject: [PATCH] Import SearchTerm from collection in aqt --- qt/aqt/addcards.py | 2 +- qt/aqt/editor.py | 2 +- qt/aqt/mediacheck.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 (