File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88help_text = """
99To 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
1212The 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
You can’t perform that action at this time.
0 commit comments