diff --git a/compose.yaml b/compose.yaml index 4a818834..75799eb8 100644 --- a/compose.yaml +++ b/compose.yaml @@ -2,7 +2,7 @@ services: app: - image: ghcr.io/uberfastman/fantasy-football-metrics-weekly-report:16.0.0 + image: ghcr.io/uberfastman/fantasy-football-metrics-weekly-report:16.0.1 platform: linux/amd64 ports: - "5001:5000" diff --git a/main.py b/main.py index 63906053..cee24443 100644 --- a/main.py +++ b/main.py @@ -36,10 +36,10 @@ def main(argv): if not line.startswith("#"): dependencies.append(line.strip()) + installed_dependencies = subprocess.check_output(["pip", "freeze"]).decode("utf-8") missing_dependency_count = 0 for dependency in dependencies: - installed_dependencies = subprocess.check_output(["pip", "freeze"]).decode("utf-8") - dependency_is_installed = True if installed_dependencies.find(dependency) != -1 else False + dependency_is_installed = installed_dependencies.find(dependency) != -1 if not dependency_is_installed: missing_dependency_count += 1 dependency_package = re.split("\\W+", dependency)[0] diff --git a/report/builder.py b/report/builder.py index b5528369..5db49053 100644 --- a/report/builder.py +++ b/report/builder.py @@ -48,10 +48,10 @@ def __init__(self, self.data_dir = base_dir / Path(self.config.get("Configuration", "data_dir")) if platform: self.platform: str = platform - self.platform_display: str = format_platform_display(platform) + self.platform_display: str = format_platform_display(self.platform) else: self.platform: str = self.config.get("Settings", "platform") - self.platform_display: str = format_platform_display(platform) + self.platform_display: str = format_platform_display(self.platform) if league_id: self.league_id = str(league_id) else: