fix graphs

This commit is contained in:
Damien Elmes 2012-02-24 22:32:00 +09:00
parent 3823151d6f
commit 05782f9080
2 changed files with 4 additions and 1 deletions

View file

@ -111,7 +111,8 @@ class CollectionStats(object):
txt += self.hourGraph() txt += self.hourGraph()
txt += self.easeGraph() txt += self.easeGraph()
txt += self.cardGraph() txt += self.cardGraph()
return "<script>%s\n</script><center>%s</center>" % (anki.js.all, txt) return "<script>%s\n</script><center>%s</center>" % (
anki.js.jquery+anki.js.plot, txt)
css = """ css = """
<style> <style>

View file

@ -317,6 +317,8 @@ insert or replace into col select id, cast(created as int), :t,
pass pass
else: else:
conf[k] = v conf[k] = v
# don't use a learning mode for upgrading users
#gc['new']['delays'] = [10]
_addColVars(db, g, gc, conf) _addColVars(db, g, gc, conf)
# clean up # clean up
db.execute("drop table decks") db.execute("drop table decks")