Skip to content

Commit

Permalink
fix: change to more pythonic if-check
Browse files Browse the repository at this point in the history
  • Loading branch information
tdejager committed Jun 27, 2024
1 parent 16e4ec8 commit 6432889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repror/cli/generate_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def rerender_html(root_folder: Path, update_remote: bool = False):

# Do it in the loop so that we do this only once per platform
# and we dont have to hardcode the platforms
if not counts_per_platform.get(build.platform_name):
if build.platform_name not in counts_per_platform:
counts = [get_total_successful_builds_and_rebuilds(build.platform_name, before_time=time) for time in timestamps]
counts_per_platform[build.platform_name] = {
# Total successful builds
Expand Down

0 comments on commit 6432889

Please sign in to comment.