Moments before disaster.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user