From 47a61abebb572c399b59c755b67d5fd965292423 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 20 Mar 2012 06:01:25 +0900 Subject: [PATCH] accidentally used mod time instead of creation time for anki1 id --- anki/upgrade.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/anki/upgrade.py b/anki/upgrade.py index 0523d862f..62ea22608 100644 --- a/anki/upgrade.py +++ b/anki/upgrade.py @@ -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]))