Commit f75a344fb6dbcd2fd1cc28b05e820e8d96971f11

Authored by Miguel Barão
1 parent c3bb2c29
Exists in master and in 1 other branch dev

- README.md update with sqlite3 queries

README.md
... ... @@ -123,3 +123,19 @@ To correct in FreeBSD, edit `~/.login_conf` to use UTF-8, for example:
123 123 me:\
124 124 :charset=UTF-8:\
125 125 :lang=en_US.UTF-8:
  126 +
  127 +## Useful sqlite3 queries
  128 +
  129 +- Which students have already done at least one topic?
  130 +
  131 + sqlite3 students.db "select distinct student_id from studenttopic"
  132 +
  133 +
  134 +- How many topics have done each student?
  135 +
  136 + sqlite3 students.db "select student_id, count(topic_id) from studenttopic group by student_id"
  137 +
  138 +
  139 +- What questions have more wrong answers?
  140 +
  141 + sqlite3 students.db "select count(ref), ref from answers where grade<1.0 group by ref order by count(ref) desc"
... ...
templates/learn.html
... ... @@ -83,7 +83,7 @@
83 83 <div id="main">
84 84 <div id="body">
85 85 <div class="progress">
86   - <div class="progress-bar progress-bar-info" id="topic_progress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="min-width: 0em;width: 0%"></div>
  86 + <div class="progress-bar progress-bar-success" id="topic_progress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="min-width: 0em;width: 0%"></div>
87 87 </div>
88 88  
89 89 <div class="col-md-12">
... ...
templates/login.html
... ... @@ -9,11 +9,7 @@
9 9 <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
10 10 <link rel="stylesheet" href="/static/css/bootstrap-theme.min.css"> <!-- optional -->
11 11  
12   -<!-- other -->
13   - <!-- <link rel="stylesheet" href="/static/font-awesome/css/font-awesome.min.css"> -->
14   - <!-- <link rel="stylesheet" href="/static/css/github.css"> -->
15   - <!-- <link rel="stylesheet" href="/static/css/test.css"> -->
16   -
  12 +<!-- Scripts -->
17 13 <script src="/static/js/jquery.min.js"></script>
18 14 <script src="/static/bootstrap/js/bootstrap.min.js"></script>
19 15 </head>
... ... @@ -44,4 +40,3 @@
44 40 </div> <!-- container -->
45 41 </body>
46 42 </html>
47   -</body>
... ...