Merge pull request #207 from sieben/trailing_semicolon

Remove trailing semicolon
This commit is contained in:
Damien Elmes 2017-09-11 15:00:26 +10:00 committed by GitHub
commit 0c6eabc462
2 changed files with 4 additions and 4 deletions

View file

@ -54,7 +54,7 @@ acq_reps+ret_reps, lapses, card_type_id from cards"""):
elif row[1].startswith("5.1"): elif row[1].startswith("5.1"):
cloze[row[0]] = note cloze[row[0]] = note
# check for None to fix issue where import can error out # check for None to fix issue where import can error out
rawTags = row[2]; rawTags = row[2]
if rawTags is None: if rawTags is None:
rawTags = "" rawTags = ""
# merge tags into note # merge tags into note

View file

@ -194,11 +194,11 @@ where lastIvl >= 21 and id > ?"""+lim, (self.col.sched.dayCutoff-86400)*1000)
def dueGraph(self): def dueGraph(self):
if self.type == 0: if self.type == 0:
start = 0; end = 31; chunk = 1; start, end, chunk = 0, 31, 1
elif self.type == 1: elif self.type == 1:
start = 0; end = 52; chunk = 7 start, end, chunk = 0, 52, 7
elif self.type == 2: elif self.type == 2:
start = 0; end = None; chunk = 30 start, end, chunk = 0, None, 30
d = self._due(start, end, chunk) d = self._due(start, end, chunk)
yng = [] yng = []
mtr = [] mtr = []