WebHost: fix is_zipfile check for flask FileStorage objects

- and assorted cleanup
This commit is contained in:
Fabian Dill
2022-01-06 06:09:15 +01:00
parent a6a9989fcf
commit 80b3a5b1d4
7 changed files with 15 additions and 17 deletions

View File

@@ -782,10 +782,9 @@ class RegionType(int, Enum):
class Region(object):
def __init__(self, name: str, type: str, hint, player: int, world: Optional[MultiWorld] = None):
def __init__(self, name: str, type_: RegionType, hint, player: int, world: Optional[MultiWorld] = None):
self.name = name
self.type = type
self.type = type_
self.entrances = []
self.exits = []
self.locations = []