Skip to content

Commit 77acb8b

Browse files
committed
Skip build for zero completion
1 parent 562cc3d commit 77acb8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

generate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ def get_data(
6666
if repo:
6767
completion, translators_data = get_completion(clones_dir, repo)
6868
visitors_num = get_number_of_visitors(language.code) if built else 0
69-
warnings = build_warnings.number(clones_dir, repo, language.code)
69+
warnings = (
70+
build_warnings.number(clones_dir, repo, language.code) if completion else 0
71+
)
7072
else:
7173
completion = 0.0
7274
translators_data = TranslatorsData(0, False)

0 commit comments

Comments
 (0)