Skip to content

Commit

Permalink
add template column 9does not do anything yet
Browse files Browse the repository at this point in the history
in the new excel files, we aded the template column, but it failed because it was not checked in the python parser. Now the generator sees it and includes it, but the implementation is still not added
  • Loading branch information
kaligrafy committed Apr 8, 2024
1 parent 042821e commit bf6b7c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/evolution-generator/src/helpers/generator_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ def get_headers(sheet, expected_headers: List[str], sheet_name: str) -> List[str
# Get headers from the first row
current_headers = [cell.value for cell in list(sheet.rows)[0]]

print(current_headers)
print(expected_headers)
# Check if the good numbers of headers
if len(current_headers) != len(expected_headers):
raise Exception(f"Invalid number of column in {sheet_name} sheet")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def generate_section_configs(excel_file_path: str):
"title_fr",
"title_en",
"in_nav",
"template",
"parent_section",
"groups",
],
Expand All @@ -63,6 +64,7 @@ def generate_section_configs(excel_file_path: str):
title_fr,
title_en,
in_nav,
template,
parent_section,
groups,
) = get_values_from_row(row, headers)
Expand Down

0 comments on commit bf6b7c7

Please sign in to comment.