From: Mikko Rasa Date: Thu, 16 Aug 2018 16:43:02 +0000 (+0300) Subject: Replace Staff with Stave X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=14294b0b2b0cf7cc8aa2c854d612378211057b1a;p=poefilter.git Replace Staff with Stave The item classes in the game are pluralized. For most classes the singular form matches as well, but the plural of staff is staves. --- diff --git a/scrape-item-data.py b/scrape-item-data.py index ab8bc09..e788837 100755 --- a/scrape-item-data.py +++ b/scrape-item-data.py @@ -163,6 +163,8 @@ class ItemDataParser(html.parser.HTMLParser): if self.in_heading: self.current_heading = data + if self.current_heading=="Staff": + self.current_heading = "Stave" self.headings.append(self.current_heading) elif self.in_items_table and self.in_cell: if self.mod_row: