Skip to content

Commit 33f4757

Browse files
committed
Revert "Track last commit date"
This reverts commit 9e12412.
1 parent 0847dd8 commit 33f4757

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

completion.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ def get_completion(
5454
if completion:
5555
# Get latest commit date and fetch commit from before 30 days ago and checkout
5656
try:
57-
latest_commit = clone_repo.head.commit.committed_datetime.strftime(
58-
'%Y/%m/%d %T'
59-
)
6057
commit = next(
6158
clone_repo.iter_commits('HEAD', max_count=1, before='30 days ago')
6259
)
@@ -74,11 +71,10 @@ def get_completion(
7471
).completion
7572
else:
7673
month_ago_completion = 0.0
77-
latest_commit = None
7874

7975
change = completion - month_ago_completion
8076

81-
return completion, translators_data, branch, change, latest_commit
77+
return completion, translators_data, branch, change
8278

8379

8480
@dataclass(frozen=True)

generate.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,12 @@ def get_project_data(
6464
) -> 'LanguageProjectData':
6565
built = language.code in languages_built
6666
if repo:
67-
completion, translators_data, branch, change, latest_commit_date = get_completion(clones_dir, repo)
67+
completion, translators_data, branch, change = get_completion(clones_dir, repo)
6868
else:
6969
completion = 0.0
7070
translators_data = TranslatorsData(0, False)
7171
change = 0.0
7272
branch = ''
73-
latest_commit_date = None
7473
return LanguageProjectData(
7574
language,
7675
repo,
@@ -79,7 +78,6 @@ def get_project_data(
7978
change,
8079
translators_data,
8180
built,
82-
latest_commit_date,
8381
in_switcher=languages_built.get(language.code),
8482
uses_platform=language.code in contribute.pulling_from_transifex,
8583
contribution_link=contribute.get_contrib_link(language.code, repo),
@@ -95,7 +93,6 @@ class LanguageProjectData:
9593
change: float
9694
translators: TranslatorsData
9795
built: bool
98-
latest_commit_date: str | None
9996
in_switcher: bool | None
10097
uses_platform: bool
10198
contribution_link: str | None

metadata.html.jinja

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<tr>
1616
<th>language</th>
1717
<th>branch</th>
18-
<th>last updated</th>
1918
<th>build warnings*</th>
2019
<th>lint failures</th>
2120
</tr>
@@ -25,7 +24,6 @@
2524
<tr>
2625
<td data-label="language">{{ project.language.name }} ({{ project.language.code }})</td>
2726
<td data-label="branch">{{ project.branch }}</td>
28-
<td data-label="updated">{{ project.last_commit_date }}</td>
2927
<td data-label="warnings">
3028
{% if project.completion %}<a href="warnings-{{ project.language.code }}.txt">{{ metadata[0] }}</a>{% else %}{{ metadata[0] }}{% endif %}
3129
</td>

0 commit comments

Comments
 (0)