mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Revert "moveTemplate slightly quicker"
This reverts commit b29fd508c7
.
This caused a regression:
https://github.com/dae/anki/pull/294
This commit is contained in:
parent
44952ff727
commit
3cf770c73c
1 changed files with 1 additions and 4 deletions
|
@ -396,10 +396,7 @@ update cards set ord = ord - 1, usn = ?, mod = ?
|
|||
# generate change map
|
||||
map = []
|
||||
for t in m['tmpls']:
|
||||
oldidx = oldidxs[id(t)]
|
||||
newidx = t['ord']
|
||||
if oldidx != newidx:
|
||||
map.append("when ord = %d then %d" % (oldidx, newidx))
|
||||
map.append("when ord = %d then %d" % (oldidxs[id(t)], t['ord']))
|
||||
# apply
|
||||
self.save(m)
|
||||
self.col.db.execute("""
|
||||
|
|
Loading…
Reference in a new issue