diff options
Diffstat (limited to 'wiki/wikigen.py')
-rwxr-xr-x | wiki/wikigen.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |