enforce ordinal ordering when importing

This commit is contained in:
Damien Elmes 2009-08-17 05:05:50 +09:00
parent c33c6318b2
commit 8bc7e0c945

View file

@ -196,9 +196,10 @@ where factId in (%s)""" % ",".join([str(s) for s in factIds]))
"Add any scheduling metadata to cards"
if 'fields' in card.__dict__:
del card.fields
data['created'] = self._now
data['modified'] = self._now
data['due'] = self._now
t = self._now + data['ordinal']
data['created'] = t
data['modified'] = t
data['due'] = t
self._now += .00001
data.update(card.__dict__)
self.cardIds.append(data['id'])