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:28:05 -05:00
parent a4cd7fbc0d
commit 4e9949f69d

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():