mirror of
				https://github.com/DarkflameUniverse/NexusDashboard.git
				synced 2025-11-04 06:01:53 +00:00 
			
		
		
		
	check item.attrib and not just item (#111)
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user