Make campaign's yaml suffix case-insensitive

This commit is contained in:
Raffson
2022-08-15 01:09:41 +02:00
parent 4722a558b8
commit a14bf6d1ba

View File

@@ -64,7 +64,7 @@ class Campaign:
@classmethod
def from_file(cls, path: Path) -> Campaign:
with path.open() as campaign_file:
if path.suffix == ".yaml":
if path.suffix.lower() == ".yaml":
data = yaml.safe_load(campaign_file)
else:
data = json.load(campaign_file)