From 1026cc71a93ec4e5a9d9eb18c444831b9244b485 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Sat, 4 Mar 2023 18:56:10 +0000 Subject: [PATCH] Add dataset to entry on creation --- ref-test/app/quiz/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ref-test/app/quiz/views.py b/ref-test/app/quiz/views.py index 9b1f382..d9885fe 100644 --- a/ref-test/app/quiz/views.py +++ b/ref-test/app/quiz/views.py @@ -60,6 +60,7 @@ def _start(): write('system.log', f'Database error when processing request \'{request.url}\': {exception}') return abort(500) entry.test = test + entry.dataset = test.dataset entry.user_code = request.form.get('user_code') entry.user_code = None if entry.user_code == '' else entry.user_code.lower() if not test: return jsonify({'error': 'The exam code you entered is invalid.'}), 400