Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,6 +106,7 @@ def start_test(student_id, level_input):
|
|
| 106 |
used_passages = set()
|
| 107 |
action_log = []
|
| 108 |
|
|
|
|
| 109 |
now = (datetime.utcnow() + timedelta(hours=9)).isoformat()
|
| 110 |
|
| 111 |
entry = {
|
|
@@ -176,6 +177,8 @@ def start_test(student_id, level_input):
|
|
| 176 |
|
| 177 |
def next_page(pages_json, current_page, total_pages, pid, orig_lev, start_time):
|
| 178 |
now = (datetime.utcnow() + timedelta(hours=9)).isoformat()
|
|
|
|
|
|
|
| 179 |
|
| 180 |
entry = {
|
| 181 |
"user_id": current_user_id,
|
|
@@ -243,6 +246,8 @@ def next_page(pages_json, current_page, total_pages, pid, orig_lev, start_time):
|
|
| 243 |
def prev_page(pages_json, current_page, total_pages):
|
| 244 |
now = (datetime.utcnow() + timedelta(hours=9)).isoformat()
|
| 245 |
|
|
|
|
|
|
|
| 246 |
entry = {
|
| 247 |
"user_id": current_user_id,
|
| 248 |
"assigned_level": current_level, # 変更点
|
|
|
|
| 106 |
used_passages = set()
|
| 107 |
action_log = []
|
| 108 |
|
| 109 |
+
action = "start_pushed"
|
| 110 |
now = (datetime.utcnow() + timedelta(hours=9)).isoformat()
|
| 111 |
|
| 112 |
entry = {
|
|
|
|
| 177 |
|
| 178 |
def next_page(pages_json, current_page, total_pages, pid, orig_lev, start_time):
|
| 179 |
now = (datetime.utcnow() + timedelta(hours=9)).isoformat()
|
| 180 |
+
|
| 181 |
+
action = "next_pushed"
|
| 182 |
|
| 183 |
entry = {
|
| 184 |
"user_id": current_user_id,
|
|
|
|
| 246 |
def prev_page(pages_json, current_page, total_pages):
|
| 247 |
now = (datetime.utcnow() + timedelta(hours=9)).isoformat()
|
| 248 |
|
| 249 |
+
action = "prev_pushed"
|
| 250 |
+
|
| 251 |
entry = {
|
| 252 |
"user_id": current_user_id,
|
| 253 |
"assigned_level": current_level, # 変更点
|