formatting

This commit is contained in:
Damien Elmes 2020-07-01 14:01:24 +10:00
parent 38838a6d0b
commit 4d23a69e9a
2 changed files with 4 additions and 2 deletions

View file

@ -1260,7 +1260,7 @@ where id = ?
# unbury if the day has rolled over # unbury if the day has rolled over
unburied = self.col.conf.get("lastUnburied", 0) 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.unburyCards()
self.col.conf["lastUnburied"] = self.today self.col.conf["lastUnburied"] = self.today

View file

@ -201,7 +201,9 @@ Not currently enabled; click the sync button in the main window to enable."""
def updateNetwork(self): def updateNetwork(self):
self.prof["autoSync"] = self.form.syncOnProgramOpen.isChecked() self.prof["autoSync"] = self.form.syncOnProgramOpen.isChecked()
self.prof["syncMedia"] = self.form.syncMedia.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(): if self.form.fullSync.isChecked():
self.mw.col.modSchema(check=False) self.mw.col.modSchema(check=False)
self.mw.col.setMod() self.mw.col.setMod()