Skip to content

Commit

Permalink
Account for Repository.updatestamp being nullable (#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem authored Nov 8, 2024
1 parent 5634caa commit 742e89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/upload_finisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def run_impl(
# of recently-active repositories
now = datetime.now(tz=timezone.utc)
threshold = now - timedelta(minutes=30)
if repository.updatestamp < threshold:
if not repository.updatestamp or repository.updatestamp < threshold:
repository.updatestamp = now
db_session.commit()

Expand Down

0 comments on commit 742e89c

Please sign in to comment.