diff --git a/anki/importing/mnemo.py b/anki/importing/mnemo.py index b3e0ad2ef..f07388a26 100644 --- a/anki/importing/mnemo.py +++ b/anki/importing/mnemo.py @@ -54,7 +54,7 @@ acq_reps+ret_reps, lapses, card_type_id from cards"""): elif row[1].startswith("5.1"): cloze[row[0]] = note # check for None to fix issue where import can error out - rawTags = row[2]; + rawTags = row[2] if rawTags is None: rawTags = "" # merge tags into note diff --git a/anki/stats.py b/anki/stats.py index d653192f0..e1b6a4a68 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -194,11 +194,11 @@ where lastIvl >= 21 and id > ?"""+lim, (self.col.sched.dayCutoff-86400)*1000) def dueGraph(self): if self.type == 0: - start = 0; end = 31; chunk = 1; + start, end, chunk = 0, 31, 1 elif self.type == 1: - start = 0; end = 52; chunk = 7 + start, end, chunk = 0, 52, 7 elif self.type == 2: - start = 0; end = None; chunk = 30 + start, end, chunk = 0, None, 30 d = self._due(start, end, chunk) yng = [] mtr = []