From 552d4af9e81dae06ba78ae6be5761fafc9af3dec Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 7 Apr 2020 12:04:05 -0300 Subject: Only this? :o --- wiki/wikigen.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wiki/wikigen.py b/wiki/wikigen.py index 3d7f8e3..94943e2 100755 --- a/wiki/wikigen.py +++ b/wiki/wikigen.py @@ -630,7 +630,9 @@ def ItemWrite(tbl, ID=False, AEGIS=False, NAME=False, PRICE=False, WEIGHT=True, try: zt=int(i.weight) except: + zt=0 tbl.remove(i) + del zt for i in sorted(tbl, key=lambda xcv: int(xcv.weight), reverse=True): if ID: -- cgit v1.2.3-70-g09d2