From 0b92423cf72e6a45b70862ea1141157299c924c3 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 29 Mar 2011 22:45:17 +0900 Subject: [PATCH] settings->options, return bool for syncingEnabled --- anki/deck.py | 2 +- anki/storage.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/deck.py b/anki/deck.py index a4f4c6434..af783a68c 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -681,7 +681,7 @@ update facts set tags = :t, mod = :n where id = :id""", [fix(row) for row in res self.syncName = u"" def syncingEnabled(self): - return self.syncName + return not not self.syncName def genSyncName(self): return unicode(checksum(self.path.encode("utf-8"))) diff --git a/anki/storage.py b/anki/storage.py index c75f09c0c..b8e31966a 100644 --- a/anki/storage.py +++ b/anki/storage.py @@ -160,7 +160,7 @@ values(1,0,0,0,%(v)s,0,'',0,'', '', ''); # create a default group/configuration, which should not be removed db.execute( "insert or ignore into gconf values (1, ?, ?, ?)""", - intTime(), _("Default Settings"), + intTime(), _("Default Options"), simplejson.dumps(anki.groups.defaultConf)) db.execute( "insert or ignore into groups values (1, ?, ?, 1, ?)",