From 4e9949f69d6ae8c4d4d53e164f27e74c9a87225b Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 23 Jan 2019 15:28:05 -0500 Subject: [PATCH] Fix a bug in the tag backfill that prevented copying lifetime_start_ts when it is zero --- workers/tagbackfillworker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workers/tagbackfillworker.py b/workers/tagbackfillworker.py index 226a7f9dc..fa5f5b8d0 100644 --- a/workers/tagbackfillworker.py +++ b/workers/tagbackfillworker.py @@ -181,9 +181,9 @@ def backfill_tag(repositorytag): return False 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 - if repositorytag.lifetime_end_ts else None) + if repositorytag.lifetime_end_ts is not None else None) # Create the new Tag. with db_transaction():