mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
settings->options, return bool for syncingEnabled
This commit is contained in:
parent
4af961f1d0
commit
0b92423cf7
2 changed files with 2 additions and 2 deletions
|
@ -681,7 +681,7 @@ update facts set tags = :t, mod = :n where id = :id""", [fix(row) for row in res
|
||||||
self.syncName = u""
|
self.syncName = u""
|
||||||
|
|
||||||
def syncingEnabled(self):
|
def syncingEnabled(self):
|
||||||
return self.syncName
|
return not not self.syncName
|
||||||
|
|
||||||
def genSyncName(self):
|
def genSyncName(self):
|
||||||
return unicode(checksum(self.path.encode("utf-8")))
|
return unicode(checksum(self.path.encode("utf-8")))
|
||||||
|
|
|
@ -160,7 +160,7 @@ values(1,0,0,0,%(v)s,0,'',0,'', '', '');
|
||||||
# create a default group/configuration, which should not be removed
|
# create a default group/configuration, which should not be removed
|
||||||
db.execute(
|
db.execute(
|
||||||
"insert or ignore into gconf values (1, ?, ?, ?)""",
|
"insert or ignore into gconf values (1, ?, ?, ?)""",
|
||||||
intTime(), _("Default Settings"),
|
intTime(), _("Default Options"),
|
||||||
simplejson.dumps(anki.groups.defaultConf))
|
simplejson.dumps(anki.groups.defaultConf))
|
||||||
db.execute(
|
db.execute(
|
||||||
"insert or ignore into groups values (1, ?, ?, 1, ?)",
|
"insert or ignore into groups values (1, ?, ?, 1, ?)",
|
||||||
|
|
Loading…
Reference in a new issue