Skip to content

Commit d2abf53

Browse files
StanFromIrelandm-aciek
authored andcommitted
Suggestion from Maciek
1 parent 9d14b9c commit d2abf53

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

generate_metadata.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,11 @@ def get_language_repo_branch_and_completion(
102102
completion_progress = [
103103
dacite.from_dict(LanguageProjectData, project) for project in index_json
104104
]
105-
changes = [project.change for project in completion_progress]
106105

107106
output = template.render(
108107
metadata=zip(completion_progress, get_projects_metadata(completion_progress)),
109108
generation_time=generation_time,
110109
duration=(datetime.now(timezone.utc) - generation_time).seconds,
111-
change=changes,
112110
)
113111

114112
Path('metadata.html').write_text(output)

metadata.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
{% if project.completion %}<a href="warnings-lint-{{ project.language.code }}.txt">{{ metadata[1] }}</a>{% else %}{{ metadata[1] }}{% endif %}
3333
</td>
3434
<td>
35-
<td data-label="change">{{ "{:.2f}".format(project.completion) }}%</td>
35+
<td data-label="change">{{ "{:.2f}".format(project.change) }}%</td>
3636
</td>
3737
</tr>
3838
{% endfor %}

0 commit comments

Comments
 (0)