From 7c0127bd1d5558376b6eb61ef22c50fc8c2ffa71 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Sun, 14 Sep 2025 16:24:54 -0700 Subject: [PATCH] check item.attrib and not just item (#111) --- app/reports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/reports.py b/app/reports.py index 6e49ea2..bd11a29 100644 --- a/app/reports.py +++ b/app/reports.py @@ -247,7 +247,7 @@ def gen_item_report(): if inv.attrib["t"] in ["0", "1"]: for item in inv.findall("i"): item_attr_l = item.attrib["l"] - item_attr_c = int(item.attrib["c"]) if "c" in item else 1 + item_attr_c = int(item.attrib["c"]) if "c" in item.attrib else 1 if item_attr_l in report_data: report_data[item_attr_l]["item_count"] = report_data[item_attr_l]["item_count"] + item_attr_c else: