From 4d23a69e9a520925097545819ebf5293e7d30840 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 1 Jul 2020 14:01:24 +1000 Subject: [PATCH] formatting --- pylib/anki/schedv2.py | 2 +- qt/aqt/preferences.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pylib/anki/schedv2.py b/pylib/anki/schedv2.py index e011b2fdb..8e0d42b10 100644 --- a/pylib/anki/schedv2.py +++ b/pylib/anki/schedv2.py @@ -1260,7 +1260,7 @@ where id = ? # unbury if the day has rolled over unburied = self.col.conf.get("lastUnburied", 0) - if unburied < self.today or self.today+7 < unburied: + if unburied < self.today or self.today + 7 < unburied: self.unburyCards() self.col.conf["lastUnburied"] = self.today diff --git a/qt/aqt/preferences.py b/qt/aqt/preferences.py index 5e1ded7eb..5e3ea5c8c 100644 --- a/qt/aqt/preferences.py +++ b/qt/aqt/preferences.py @@ -201,7 +201,9 @@ Not currently enabled; click the sync button in the main window to enable.""" def updateNetwork(self): self.prof["autoSync"] = self.form.syncOnProgramOpen.isChecked() self.prof["syncMedia"] = self.form.syncMedia.isChecked() - self.mw.pm.set_auto_sync_media_minutes(self.form.autoSyncMedia.isChecked() and 15 or 0) + self.mw.pm.set_auto_sync_media_minutes( + self.form.autoSyncMedia.isChecked() and 15 or 0 + ) if self.form.fullSync.isChecked(): self.mw.col.modSchema(check=False) self.mw.col.setMod()