Skip to content

Commit

Permalink
Merge pull request #3202 from raft-tech/3180-error-type-field
Browse files Browse the repository at this point in the history
3180 - error type field
  • Loading branch information
jtimpe authored Oct 1, 2024
2 parents c5f87eb + 022d9c4 commit 93c0125
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tdrs-backend/tdpservice/data_files/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from io import BytesIO
import xlsxwriter
import calendar
from tdpservice.parsers.models import ParserErrorCategoryChoices


def get_xls_serialized_file(data):
Expand Down Expand Up @@ -48,6 +49,7 @@ def format_error_msg(x):
('item_name', lambda x: ','.join([i for i in chk(x)['fields_json']['friendly_name'].values()])),
('internal_variable_name', lambda x: ','.join([i for i in chk(x)['fields_json']['friendly_name'].keys()])),
('row_number', lambda x: x['row_number']),
('error_type', lambda x: str(ParserErrorCategoryChoices(x['error_type']).label)),
]

# write beta banner
Expand Down

0 comments on commit 93c0125

Please sign in to comment.