mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
track gcid additions too
This commit is contained in:
parent
77ee8f1385
commit
4b9c6fc822
1 changed files with 8 additions and 0 deletions
|
@ -37,6 +37,7 @@ defaultConf = {
|
||||||
'nextFid': 1,
|
'nextFid': 1,
|
||||||
'nextCid': 1,
|
'nextCid': 1,
|
||||||
'nextGid': 2,
|
'nextGid': 2,
|
||||||
|
'nextGcid': 2,
|
||||||
'mediaURL': "",
|
'mediaURL': "",
|
||||||
'latexPre': """\
|
'latexPre': """\
|
||||||
\\documentclass[12pt]{article}
|
\\documentclass[12pt]{article}
|
||||||
|
@ -577,6 +578,13 @@ select conf from gconf where id = (select gcid from groups where id = ?)""",
|
||||||
self.db.execute(
|
self.db.execute(
|
||||||
"update cards set gid = ? where id in "+ids2str(cids), gid)
|
"update cards set gid = ? where id in "+ids2str(cids), gid)
|
||||||
|
|
||||||
|
# Group configuration
|
||||||
|
##########################################################################
|
||||||
|
|
||||||
|
def groupConfs(self):
|
||||||
|
"Return [name, id]."
|
||||||
|
return self.db.all("select name, id from gconf order by name")
|
||||||
|
|
||||||
# Tag-based selective study
|
# Tag-based selective study
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue