tweak order of failed card options

This commit is contained in:
Damien Elmes 2009-02-07 21:34:46 +09:00
parent a342c73887
commit 28f738f069

View file

@ -1551,13 +1551,13 @@ where id = :id""", pending)
d = 600
self.collapseTime = 1
elif idx == 1:
d = 600
elif idx == 2:
d = 28800
elif idx == 3:
d = 259200
elif idx == 4:
d = 0
elif idx == 2:
d = 600
elif idx == 3:
d = 28800
elif idx == 4:
d = 259200
self.delay0 = d
self.delay1 = d
@ -1569,13 +1569,13 @@ where id = :id""", pending)
if d == 600:
return 0
return 5
if d == 600:
if d == 0:
return 1
elif d == 28800:
elif d == 600:
return 2
elif d == 259200:
elif d == 28800:
return 3
elif d == 0:
elif d == 259200:
return 4
return 5
@ -2559,9 +2559,9 @@ def revCardOrderLabels():
def failedCardOptionLabels():
return {
0: _("Show failed cards soon"),
1: _("Show failed cards in 10 minutes"),
2: _("Show failed cards in 8 hours"),
3: _("Show failed cards in 3 days"),
4: _("Show failed cards at end"),
1: _("Show failed cards at end"),
2: _("Show failed cards in 10 minutes"),
3: _("Show failed cards in 8 hours"),
4: _("Show failed cards in 3 days"),
5: _("Custom failed cards handling"),
}