replace facts, don't ignore them

This commit is contained in:
Damien Elmes 2008-11-29 00:13:59 +09:00
parent 6172400706
commit a0adccc117

View file

@ -432,7 +432,7 @@ where factId in %s""" % factIds))
"select count(*) from facts where id in %s" %
ids2str([f[0] for f in facts])))
self.deck.s.execute("""
insert or ignore into facts
insert or replace into facts
(id, modelId, created, modified, tags, spaceUntil, lastCardId)
values
(:id, :modelId, :created, :modified, :tags, :spaceUntil, :lastCardId)""", dlist)