mirror of
https://github.com/ankitects/anki.git
synced 2026-01-14 06:23:57 -05:00
update requireds saves reqs as lists instead of tuples.
The goal of this change is to be consistent with JSON. Indeed, the dictionnary is saved as JSON, which has list and does not has tuple. The request was made in https://github.com/dae/anki/pull/361#issuecomment-565915191
This commit is contained in:
parent
39f6c9fa2b
commit
5afc93d8c8
1 changed files with 1 additions and 1 deletions
|
|
@ -498,7 +498,7 @@ select id from notes where mid = ?)""" % " ".join(map),
|
|||
flds = [f['name'] for f in m['flds']]
|
||||
for t in m['tmpls']:
|
||||
ret = self._reqForTemplate(m, flds, t)
|
||||
req.append((t['ord'], ret[0], ret[1]))
|
||||
req.append([t['ord'], ret[0], ret[1]])
|
||||
m['req'] = req
|
||||
|
||||
def _reqForTemplate(self, m, flds, t):
|
||||
|
|
|
|||
Loading…
Reference in a new issue