Skip to content

Commit f68040f

Browse files
committed
Revert "Fix typing and template typo"
This reverts commit faea261.
1 parent dd39c9f commit f68040f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

completion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def branches_from_devguide(devguide_dir: Path) -> list[str]:
2222

2323
def get_completion(
2424
clones_dir: str, repo: str
25-
) -> tuple[float, 'TranslatorsData', str, float, str]:
25+
) -> tuple[float, 'TranslatorsData', str, float]:
2626
clone_path = Path(clones_dir, 'translations', repo)
2727
for branch in branches_from_devguide(Path(clones_dir, 'devguide')) + [
2828
'master',
@@ -74,7 +74,7 @@ def get_completion(
7474
).completion
7575
else:
7676
month_ago_completion = 0.0
77-
latest_commit = ''
77+
latest_commit = None
7878

7979
change = completion - month_ago_completion
8080

generate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def get_project_data(
7272
translators_data = TranslatorsData(0, False)
7373
change = 0.0
7474
branch = ''
75-
latest_commit_date = ''
75+
latest_commit_date = None
7676
return LanguageProjectData(
7777
language,
7878
repo,
@@ -97,7 +97,7 @@ class LanguageProjectData:
9797
change: float
9898
translators: TranslatorsData
9999
built: bool
100-
latest_commit_date: str
100+
latest_commit_date: str | None
101101
in_switcher: bool | None
102102
uses_platform: bool
103103
contribution_link: str | None

metadata.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<tr>
2626
<td data-label="language">{{ project.language.name }} ({{ project.language.code }})</td>
2727
<td data-label="branch">{{ project.branch }}</td>
28-
<td data-label="updated">{{ project.latest_commit_date }}</td>
28+
<td data-label="updated">{{ project.last_commit_date }}</td>
2929
<td data-label="warnings">
3030
{% if project.completion %}<a href="warnings-{{ project.language.code }}.txt">{{ metadata[0] }}</a>{% else %}{{ metadata[0] }}{% endif %}
3131
</td>

0 commit comments

Comments
 (0)