mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
enforce ordinal ordering when importing
This commit is contained in:
parent
c33c6318b2
commit
8bc7e0c945
1 changed files with 4 additions and 3 deletions
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue