From 7ca81403e0211759587e78a6148a87a53115fb91 Mon Sep 17 00:00:00 2001 From: MikiVL Date: Tue, 5 May 2026 13:15:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20rows=20is=20None=20=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E9=98=B2=E6=AD=A2=E7=A9=BA=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E8=AF=AF=E8=A7=A6=E5=8F=91=E6=96=87=E4=BB=B6=E8=AF=BB?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/generator.py b/python/generator.py index 1bd6e13..5dacf50 100644 --- a/python/generator.py +++ b/python/generator.py @@ -19,7 +19,7 @@ def generate(req: dict) -> dict: output_dir = req["output_dir"] filename_pattern = req["filename_pattern"] - if data_file_path and not rows: + if data_file_path and rows is None: dwb = load_workbook(data_file_path, data_only=True) dws = dwb.active headers = [cell.value for cell in next(dws.iter_rows(min_row=1, max_row=1))]