fix(salary): skip chart-only workbook tabs (#590)

* fix(salary): skip chart-only workbook tabs

* docs(changelog): record fix for #590
This commit is contained in:
Rudy Mizrahi Celekli authored and GitHub committed 2026-10-18 07:11:57 +02:00
1 parent b7be711ca5
commit 652508a929
3 files changed
+72 -4

No files matched your search

+3 -4
View File
@@ -382,10 +382,9 @@ def main():
wb = openpyxl.load_workbook(excel_path, read_only=True, data_only=True)
all_companies = []
for sheet_name in wb.sheetnames:
print(f" Parsing sheet: {sheet_name}")
ws = wb[sheet_name]
companies = parse_sheet(ws, sheet_label=sheet_name)
for ws in wb.worksheets:
print(f" Parsing sheet: {ws.title}")
companies = parse_sheet(ws, sheet_label=ws.title)
all_companies.extend(companies)
wb.close()