mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Merge 'data' variable into its only usage site
This commit is contained in:
parent
af4d4af55d
commit
8ceccbd164
1 changed files with 4 additions and 3 deletions
|
@ -135,13 +135,14 @@ lapses=?, left=?, odue=?, odid=?, did=? where id = ?""",
|
|||
def _getQA(self, reload: bool = False, browser: bool = False) -> Any:
|
||||
if not self._qa or reload:
|
||||
f = self.note(reload); m = self.model(); t = self.template()
|
||||
data = [self.id, f.id, m['id'], self.odid or self.did, self.ord,
|
||||
f.stringTags(), f.joinedFields(), self.flags]
|
||||
if browser:
|
||||
args = [t.get('bqfmt'), t.get('bafmt')]
|
||||
else:
|
||||
args = []
|
||||
self._qa = self.col._renderQA(data, *args) # type: ignore
|
||||
self._qa = self.col._renderQA(
|
||||
(self.id, f.id, m['id'], self.odid or self.did, self.ord,
|
||||
f.stringTags(), f.joinedFields(), self.flags),
|
||||
*args) # type: ignore
|
||||
return self._qa
|
||||
|
||||
def note(self, reload: bool = False) -> Any:
|
||||
|
|
Loading…
Reference in a new issue