diff --git a/util/importer.py b/util/importer.py index e83312bee8c6b3e882d91d5e4aa5cca826c8dc6b..7172381179260a380e4636601d08881d47b25710 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, } )