Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Commit

Permalink
Fix cell key bug (#79)
Browse files Browse the repository at this point in the history
* Changed values in parse.py to use correct cell key
  • Loading branch information
CVilla17 authored Feb 14, 2023
1 parent b05bc7d commit 1dbb6fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/python/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ def parse(self):
cell_info = self._get_cell_info(index, row, column)

# Check if column should be skipped
if self._skip_column(column[1], cell_info["value"], cell_info["type"]):
if self._skip_column(
cell_info["key"], cell_info["value"], cell_info["type"]
):
continue

# Convert list values (with ";" separator) to Python lists
# Manually skip fields commonly containing semicolons
if (
cell_info["value"] not in ("notes", "description")
cell_info["key"] not in ("notes", "description")
and isinstance(cell_info["value"], str)
and ";" in cell_info["value"]
):
Expand Down
2 changes: 1 addition & 1 deletion src/web/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -398,4 +398,4 @@ <h2 class="text-center text-success" style="font-size: 5rem">
</main>

</body>
</html>
</html>

0 comments on commit 1dbb6fc

Please sign in to comment.