Skip to content
Snippets Groups Projects

added no connection message and changed final checkbox tooltip

Merged Dominik Seeger requested to merge ux-improvements into master
1 file
+ 7
1
Compare changes
  • Side-by-side
  • Inline
+ 7
1
import json
import json
import os
import os
import readline
import readline
 
import logging
from util.messages import warn
from util.messages import warn
from core.models import ExamType, Feedback, Submission, SubmissionType, Test
from core.models import ExamType, Feedback, Submission, SubmissionType, Test
@@ -9,6 +10,8 @@ from util.factories import GradyUserFactory
@@ -9,6 +10,8 @@ from util.factories import GradyUserFactory
import semver
import semver
 
log = logging.getLogger(__name__)
 
WELCOME = r'''
WELCOME = r'''
______ __ ____ __
______ __ ____ __
@@ -125,7 +128,10 @@ def load_hektor_json():
@@ -125,7 +128,10 @@ def load_hektor_json():
exam, _ = ExamType.objects.get_or_create(**exam_data['module'])
exam, _ = ExamType.objects.get_or_create(**exam_data['module'])
for submission_type in exam_data['submission_types']:
for submission_type in exam_data['submission_types']:
SubmissionType.objects.get_or_create(**submission_type)
_, created = SubmissionType.objects.update_or_create(
 
name=submission_type['name'], defaults=submission_type)
 
if not created:
 
log.warning(f"Updated submission type {submission_type}")
for student in exam_data['students']:
for student in exam_data['students']:
student_obj = user_factory.make_student(exam=exam,
student_obj = user_factory.make_student(exam=exam,
Loading