bug fix
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user