Commit prior to form response checking pivot in logic
This commit is contained in:
@@ -145,6 +145,7 @@ def build_job_material_line(
|
||||
def parse_quote_template_field_rows(field_rows: List[Dict[str, Any]]) -> Dict[str, Any]:
|
||||
ordered = sorted(field_rows, key=sort_key)
|
||||
description = ""
|
||||
author_name = ""
|
||||
include_items: List[Dict[str, Any]] = []
|
||||
exclude_items: List[Dict[str, Any]] = []
|
||||
extra_include_items: List[Dict[str, Any]] = []
|
||||
@@ -161,6 +162,10 @@ def parse_quote_template_field_rows(field_rows: List[Dict[str, Any]]) -> Dict[st
|
||||
description = response
|
||||
continue
|
||||
|
||||
if question == "Name":
|
||||
author_name = response
|
||||
continue
|
||||
|
||||
if question.startswith("Item ") and response:
|
||||
include_items.append(
|
||||
{
|
||||
@@ -253,6 +258,7 @@ def parse_quote_template_field_rows(field_rows: List[Dict[str, Any]]) -> Dict[st
|
||||
|
||||
return {
|
||||
"description": description,
|
||||
"author_name": author_name,
|
||||
"include_items": include_items,
|
||||
"extra_include_items": extra_include_items,
|
||||
"exclude_items": exclude_items,
|
||||
|
||||
Reference in New Issue
Block a user