From e519907f9da20d29e77716a57b54f92d5f4cd9d1 Mon Sep 17 00:00:00 2001 From: Lynne Date: Mon, 24 Aug 2020 01:00:05 +1000 Subject: [PATCH] fixed a bug that caused custom names to get lost - sorry pecha ;-; --- listing.py | 2 +- settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/listing.py b/listing.py index 2237bbb..de451f9 100644 --- a/listing.py +++ b/listing.py @@ -65,9 +65,9 @@ class YahooAuctionsItem: if url == None and from_json != None and id != None: self.id = id self.name = from_json['name'] + self.original_name = from_json['original_name'] if self.name == "": self.name = self.original_name - self.original_name = from_json['original_name'] self.favourite = from_json['favourite'] self.url = f"https://buyee.jp/item/yahoo/auction/{self.id}" diff --git a/settings.py b/settings.py index 0b14b67..5828100 100644 --- a/settings.py +++ b/settings.py @@ -38,7 +38,7 @@ class BuypeebSettings: for key in j: setattr(self, key, j[key]) for key in self.jwatchlist: - self.watchlist[key] = YahooAuctionsItem("", from_json = self.jwatchlist[key], id = key) + self.watchlist[key] = YahooAuctionsItem(url = None, from_json = self.jwatchlist[key], id = key) self.jwatchlist = {}