Merge pull request #3344 from quay/tag-backfill-legacy-tags-fix

Fix a bug in the tag backfill that prevented copying lifetime_start_ts when it is zero
This commit is contained in:
Joseph Schorr 2019-01-23 15:31:04 -05:00 committed by GitHub
commit 6d7b113ca0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -181,9 +181,9 @@ def backfill_tag(repositorytag):
return False return False
lifetime_start_ms = (repositorytag.lifetime_start_ts * 1000 lifetime_start_ms = (repositorytag.lifetime_start_ts * 1000
if repositorytag.lifetime_start_ts else None) if repositorytag.lifetime_start_ts is not None else None)
lifetime_end_ms = (repositorytag.lifetime_end_ts * 1000 lifetime_end_ms = (repositorytag.lifetime_end_ts * 1000
if repositorytag.lifetime_end_ts else None) if repositorytag.lifetime_end_ts is not None else None)
# Create the new Tag. # Create the new Tag.
with db_transaction(): with db_transaction():