From bd76a1eab7fe54ecaa442bae5a6c705d326115c9 Mon Sep 17 00:00:00 2001 From: Andrew Brain Date: Tue, 21 Jan 2025 18:15:46 -0600 Subject: [PATCH] fix syntax errors --- augur/tasks/github/events.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/augur/tasks/github/events.py b/augur/tasks/github/events.py index ff3dfec9b..cf7df5758 100644 --- a/augur/tasks/github/events.py +++ b/augur/tasks/github/events.py @@ -31,7 +31,7 @@ def collect_events(repo_git: str, full_collection: bool): if full_collection: core_data_last_collected = None else: - repo_id = get_repo_by_repo_git().repo_id + repo_id = get_repo_by_repo_git(repo_git).repo_id # subtract 2 days to ensure all data is collected core_data_last_collected = (get_core_data_last_collected(repo_id) - timedelta(days=2)).replace(tzinfo=timezone.utc) @@ -43,7 +43,7 @@ def collect_events(repo_git: str, full_collection: bool): else: collection_strategy = ThoroughGithubEventCollection(logger) - collection_strategy.collect(repo_git, key_auth) + collection_strategy.collect(repo_git, key_auth, core_data_last_collected) def bulk_events_collection_endpoint_contains_all_data(key_auth, logger, owner, repo):