From c98a1e3515686f3c0b8f5cf40ff5aab2a0ca1dce Mon Sep 17 00:00:00 2001 From: janmax <j.michal@stud.uni-goettingen.de> Date: Sun, 18 Feb 2018 18:22:40 +0100 Subject: [PATCH] Test feecback is correctly given --- util/importer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/importer.py b/util/importer.py index e83312be..71723811 100644 --- a/util/importer.py +++ b/util/importer.py @@ -92,12 +92,14 @@ def add_feedback_if_test_recommends_it(test_obj): if test_obj.label == available_tests[test_obj.name].label_failure \ and not hasattr(test_obj.submission, 'feedback') \ - and not test_obj.name == util.processing.UnitTestTest.__name__: + and (test_obj.name == util.processing.EmptyTest.__name__ or + test_obj.name == util.processing.CompileTest.__name__): return Feedback.objects.update_or_create( of_submission=test_obj.submission, defaults={ 'score': 0, 'origin': FEEDBACK_MAPPER[test_obj.name], + 'is_final': True, } ) -- GitLab