Moments before disaster.

This commit is contained in:
lwark
2025-07-25 08:05:18 -05:00
parent 2c6a8c4cc7
commit 6f134d3870
9 changed files with 112 additions and 57 deletions

View File

@@ -61,7 +61,7 @@ class ClientSubmissionNamer(DefaultNamer):
def get_subtype_from_preparse(self):
from backend.excel.parsers.clientsubmission_parser import ClientSubmissionInfoParser
parser = ClientSubmissionInfoParser(self.filepath)
sub_type = next((value for k, value in parser.parsed_info if k == "submissiontype"), None)
sub_type = next((value for k, value in parser.parsed_info.items() if k == "submissiontype"), None)
sub_type = SubmissionType.query(name=sub_type)
if isinstance(sub_type, list):
sub_type = None