diff --git a/scripts/language_stats.py b/scripts/language_stats.py index 95bd130..7d22df4 100644 --- a/scripts/language_stats.py +++ b/scripts/language_stats.py @@ -79,9 +79,9 @@ def fetch_repos(session: requests.Session) -> list[dict]: return repos -def get_repo_push_timestamps(repos: list[dict]) -> dict[str, str]: - """Extract repository names and their pushed_at timestamps.""" - return {repo["name"]: repo.get("pushed_at", "") for repo in repos} +def get_repo_timestamps(repos: list[dict]) -> dict[str, str]: + """Extract repository names and their updated_at timestamps.""" + return {repo["name"]: repo.get("updated_at", "") for repo in repos} def load_state() -> dict: @@ -193,7 +193,7 @@ def main() -> int: # Fetch current repository state repos = fetch_repos(session) - current_timestamps = get_repo_push_timestamps(repos) + current_timestamps = get_repo_timestamps(repos) # Load previous state and check for changes saved_state = load_state()