mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
accidentally used mod time instead of creation time for anki1 id
This commit is contained in:
parent
8fd1756eb4
commit
47a61abebb
1 changed files with 7 additions and 7 deletions
|
@ -169,14 +169,14 @@ select id, id, modelId, cast(created*1000 as int), cast(modified as int),
|
|||
for c, row in enumerate(facts):
|
||||
oldid = row[0]
|
||||
row = list(row)
|
||||
if row[4] <= highest:
|
||||
highest = max(highest, row[4]) + 1
|
||||
row[4] = highest
|
||||
if row[3] <= highest:
|
||||
highest = max(highest, row[3]) + 1
|
||||
row[3] = highest
|
||||
else:
|
||||
highest = row[4]
|
||||
factidmap[row[0]] = row[4]
|
||||
row[0] = row[4]
|
||||
del row[4]
|
||||
highest = row[3]
|
||||
factidmap[row[0]] = row[3]
|
||||
row[0] = row[3]
|
||||
del row[3]
|
||||
map[oldid] = row[0]
|
||||
# convert old 64bit id into a string, discarding sign bit
|
||||
row[1] = base91(abs(row[1]))
|
||||
|
|
Loading…
Reference in a new issue