From da48eb1e5566577a7f486f360c594b528a06991c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 12 Feb 2011 01:28:10 +0900 Subject: [PATCH] remove old relativeDelay compat fix in sync --- anki/sync.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/anki/sync.py b/anki/sync.py index 8208489c2..09fe4570d 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -495,15 +495,6 @@ from cards where id in %s""" % ids2str(ids))) def updateCards(self, cards): if not cards: return - # FIXME: older clients won't send this, so this is temp compat code - def getType(row): - if len(row) > 36: - return row[36] - if row[15]: - return 1 - elif row[14]: - return 0 - return 2 dlist = [{'id': c[0], 'factId': c[1], 'cardModelId': c[2], @@ -540,7 +531,7 @@ from cards where id in %s""" % ids2str(ids))) 'spaceUntil': c[33], 'type': c[34], 'combinedDue': c[35], - 'rd': getType(c) + 'rd': c[36], } for c in cards] self.deck.s.execute(""" insert or replace into cards