From 1c78b91888f7f8946b58335788f151b45c1943b7 Mon Sep 17 00:00:00 2001 From: Giovanni M Guidini <99758426+giovanni-guidini@users.noreply.github.com> Date: Wed, 10 Apr 2024 15:56:00 +0200 Subject: [PATCH] update stamp used (#374) --- services/bots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/bots.py b/services/bots.py index 464d2221a..db6186398 100644 --- a/services/bots.py +++ b/services/bots.py @@ -26,7 +26,7 @@ def _get_installation_weight(installation: GithubAppInstallation) -> int: """The weight for a given app installation. Establishes an exponential ramp-up period for installations after being updated. """ - age = datetime.now(timezone.utc) - installation.updated_at + age = datetime.now(timezone.utc) - installation.created_at if age.days >= 10: return MAX_GITHUB_APP_SELECTION_WEIGHT seconds_in_hour = 3600