From 3e40dc1557cf9d7d852d54a167e9411b4c0232b3 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 4 Jun 2009 05:17:36 +0900 Subject: [PATCH] return if numBackups = 0 --- anki/deck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/deck.py b/anki/deck.py index 300c0e892..cff037a5f 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -3164,7 +3164,7 @@ nextFactor, reps, thinkingTime, yesCount, noCount from reviewHistory""") path = os.path.join(backupDir, path) path = re.sub("\.anki$", ".backup-%d.anki" % num, path) return path - if os.path.exists(backupDir.replace("backups", "nobackups")): + if not numBackups: return if not os.path.exists(backupDir): os.makedirs(backupDir)