track gcid additions too

This commit is contained in:
Damien Elmes 2011-03-29 15:25:01 +09:00
parent 77ee8f1385
commit 4b9c6fc822

View file

@ -37,6 +37,7 @@ defaultConf = {
'nextFid': 1,
'nextCid': 1,
'nextGid': 2,
'nextGcid': 2,
'mediaURL': "",
'latexPre': """\
\\documentclass[12pt]{article}
@ -577,6 +578,13 @@ select conf from gconf where id = (select gcid from groups where id = ?)""",
self.db.execute(
"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
##########################################################################