mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42: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
|
# generate change map
|
||||||
map = []
|
map = []
|
||||||
for t in m['tmpls']:
|
for t in m['tmpls']:
|
||||||
oldidx = oldidxs[id(t)]
|
map.append("when ord = %d then %d" % (oldidxs[id(t)], t['ord']))
|
||||||
newidx = t['ord']
|
|
||||||
if oldidx != newidx:
|
|
||||||
map.append("when ord = %d then %d" % (oldidx, newidx))
|
|
||||||
# apply
|
# apply
|
||||||
self.save(m)
|
self.save(m)
|
||||||
self.col.db.execute("""
|
self.col.db.execute("""
|
||||||
|
|
Loading…
Reference in a new issue