Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def get_completion(
hide_reserved=False,
api_url='',
).completion
clone_repo.git.checkout(branch) # restore the original state
else:
month_ago_completion = 0.0

Expand Down
3 changes: 1 addition & 2 deletions generate_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def get_metadata(
) -> tuple[int, int, datetime | None]:
if not repo or not (repo_path := Path(clones_dir, 'translations', repo)).exists():
return 0, 0, None
(clone_repo := Repo(repo_path)).git.checkout()
latest_commit = clone_repo.head.commit.committed_datetime
latest_commit = Repo(repo_path).head.commit.committed_datetime
if not completion:
return 0, 0, latest_commit
return (
Expand Down
Loading