be resilient if spaceUntil sent wrong

This commit is contained in:
Damien Elmes 2010-11-06 07:46:49 +09:00
parent 328a1a86a4
commit e0d46f0f12

View file

@ -488,7 +488,7 @@ where factId in %s""" % factIds))
'created': f[2],
'modified': f[3],
'tags': f[4],
'spaceUntil': f[5],
'spaceUntil': f[5] or "",
'lastCardId': f[6]
} for f in facts]
self.deck.factCount += (len(facts) - self.deck.s.scalar(