Skip to content

Commit a2444fd

Browse files
tausbnCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 483cd92 commit a2444fd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

misc/scripts/mrva-to-dca-source-suite.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
help_text = """
99
To use this script, pass the URL of a GitHub Gist as an argument. The Gist should contain the
10-
exported MarkDown output of a MRVA run.
10+
exported Markdown output of a MRVA run.
1111
1212
The script clones the Gist to a temporary directory, and constructs a DCA source suite that covers the same repos/SHAs that had results in the Gist.
1313
@@ -102,8 +102,8 @@ def get_repo_nwo_shas(repo_dir):
102102
repo_alerts = get_repo_alert_counts(repo_dir)
103103
repo_nwo_shas = get_repo_nwo_shas(repo_dir)
104104

105-
min_count = args.min if args.min else min(repo_alerts.values())
106-
max_count = args.max if args.max else max(repo_alerts.values())
105+
min_count = args.min if args.min is not None else min(repo_alerts.values())
106+
max_count = args.max if args.max is not None else max(repo_alerts.values())
107107

108108
filtered_alerts = {
109109
nwo: count for nwo, count in repo_alerts.items() if min_count <= count <= max_count

0 commit comments

Comments
 (0)