mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
return if numBackups = 0
This commit is contained in:
parent
4d1ea887dd
commit
3e40dc1557
1 changed files with 1 additions and 1 deletions
|
@ -3164,7 +3164,7 @@ nextFactor, reps, thinkingTime, yesCount, noCount from reviewHistory""")
|
||||||
path = os.path.join(backupDir, path)
|
path = os.path.join(backupDir, path)
|
||||||
path = re.sub("\.anki$", ".backup-%d.anki" % num, path)
|
path = re.sub("\.anki$", ".backup-%d.anki" % num, path)
|
||||||
return path
|
return path
|
||||||
if os.path.exists(backupDir.replace("backups", "nobackups")):
|
if not numBackups:
|
||||||
return
|
return
|
||||||
if not os.path.exists(backupDir):
|
if not os.path.exists(backupDir):
|
||||||
os.makedirs(backupDir)
|
os.makedirs(backupDir)
|
||||||
|
|
Loading…
Reference in a new issue