Skip to content

Commit

Permalink
fix platform str transformation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
uberfastman committed Oct 21, 2023
1 parent 7dbc354 commit 7b7415a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions report/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7b7415a

Please sign in to comment.