]> git.tdb.fi Git - poefilter.git/commitdiff
Replace Staff with Stave
authorMikko Rasa <tdb@tdb.fi>
Thu, 16 Aug 2018 16:43:02 +0000 (19:43 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 16 Aug 2018 16:43:02 +0000 (19:43 +0300)
The item classes in the game are pluralized.  For most classes the
singular form matches as well, but the plural of staff is staves.

scrape-item-data.py

index ab8bc097d4ecc8383cddf993a2abf378bb3a824f..e78883710705105a06b1127f9d16bafabc14c155 100755 (executable)
@@ -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: