Skip to content

Commit 82d6f03

Browse files
committed
Rename issues to warnings
1 parent 064faa2 commit 82d6f03

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

generate.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,19 @@ 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-
issues = build_warnings.number(clones_dir, repo, language.code)
69+
warnings = build_warnings.number(clones_dir, repo, language.code)
7070
else:
7171
completion = 0.0
7272
translators_data = TranslatorsData(0, False)
7373
visitors_num = 0
74-
issues = 0
74+
warnings = 0
7575
return LanguageProjectData(
7676
language,
7777
repo,
7878
completion,
7979
translators_data,
8080
visitors_num,
81-
issues,
81+
warnings,
8282
built,
8383
in_switcher=languages_built.get(language.code),
8484
uses_platform=language.code in contribute.pulling_from_transifex,
@@ -93,7 +93,7 @@ class LanguageProjectData:
9393
completion: float
9494
translators: TranslatorsData
9595
visitors: int
96-
issues: int
96+
warnings: int
9797
built: bool
9898
in_switcher: bool | None
9999
uses_platform: bool

template.html.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
{{ project.translators.number }}
4949
{% if project.translators.link %}</a>{% endif %}
5050
</td>
51-
<td data-label="issues"><a href="warnings-{{ project.language.code }}.txt" target="_blank">{{ project.issues }}</a></td>
51+
<td data-label="warnings"><a href="warnings-{{ project.language.code }}.txt" target="_blank">{{ project.warnings }}</a></td>
5252
<td data-label="completion">
5353
<div class="progress-bar" style="width: {{ project.completion }}%;">{{ "{:.2f}".format(project.completion) }}%</div>
5454
<div class="progress-bar-outer-label">{{ "{:.2f}".format(project.completion) }}%</div>

0 commit comments

Comments
 (0)