From 5c62b1182ba3c353b4247407319c89d53135e5d7 Mon Sep 17 00:00:00 2001 From: Jan Timpe Date: Wed, 4 Oct 2023 10:19:34 -0400 Subject: [PATCH] include preparsing errors in row_precheck_errors status --- tdrs-backend/tdpservice/parsers/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdrs-backend/tdpservice/parsers/models.py b/tdrs-backend/tdpservice/parsers/models.py index 5b7bb2d00..12c70a2c0 100644 --- a/tdrs-backend/tdpservice/parsers/models.py +++ b/tdrs-backend/tdpservice/parsers/models.py @@ -102,7 +102,7 @@ def get_status(self): .exclude(error_message__icontains="Unknown Record_Type was found.") row_precheck_errors = errors.filter(error_type=ParserErrorCategoryChoices.PRE_CHECK)\ - .filter(error_message__icontains="Unknown Record_Type was found.")\ + .filter(field_name="Record_Type")\ .exclude(error_message__icontains="trailer") if errors is None: