Skip to content

Commit

Permalink
update stamp used (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
giovanni-guidini authored Apr 10, 2024
1 parent 6c63297 commit 1c78b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/bots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c78b91

Please sign in to comment.