diff --git a/monitor.py b/monitor.py index 4fd3a86f3..f32a3eff5 100644 --- a/monitor.py +++ b/monitor.py @@ -688,8 +688,8 @@ def parse_entry(self, line: bytes) -> MutableMapping[str, Any]: # noqa: C901, C self.state['CargoCapacity'] = entry.get('CargoCapacity') self.state['MaxJumpRange'] = entry.get('MaxJumpRange') self.state['FuelCapacity'] = {} - self.state['FuelCapacity']['Main'] = entry.get('FuelCapacity')['Main'] - self.state['FuelCapacity']['Reserve'] = entry.get('FuelCapacity')['Reserve'] + self.state['FuelCapacity']['Main'] = entry.get('FuelCapacity')['Main'] # type: ignore + self.state['FuelCapacity']['Reserve'] = entry.get('FuelCapacity')['Reserve'] # type: ignore self.state['Rebuy'] = entry.get('Rebuy') # Remove spurious differences between initial Loadout event and subsequent self.state['Modules'] = {} diff --git a/scripts/build_changelog.py b/scripts/build_changelog.py index 6b0507740..42157947e 100644 --- a/scripts/build_changelog.py +++ b/scripts/build_changelog.py @@ -42,7 +42,7 @@ def get_changelog() -> tuple[str, str]: def build_html(md_changelog: str, version: str) -> str: """Convert markdown changelog to HTML.""" html_out = f"

Release {version}

\n" - html_out += mistune.html(md_changelog) + html_out += mistune.html(md_changelog) # type: ignore html_out = re.sub(r"h1", "h2", html_out) + "\n
" with open("script_output/html_changelog.txt", "w", encoding="utf-8") as html_file: