From 7ea771a58b02e7ef4bd7100aa5fb5866e1322fc2 Mon Sep 17 00:00:00 2001 From: HoraK-FDF Date: Sat, 29 Jan 2022 01:01:37 +0100 Subject: shoplist allow strings at end --- plugins/shop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/shop.py b/plugins/shop.py index 269d686..7e0f5f1 100755 --- a/plugins/shop.py +++ b/plugins/shop.py @@ -613,7 +613,7 @@ def load_shop_list(config): for l in f: try: item_id, buy_amount, buy_price, sell_amount, sell_price = \ - map(int, l.split()) + map(int, l.split()[0:5]) if buy_amount > 0: buying[item_id] = buy_price, buy_amount if sell_amount > 0: -- cgit v1.2.3-70-g09d2