Skip to content

Commit

Permalink
revisions: set date_approved only when date_landed is detected (B…
Browse files Browse the repository at this point in the history
…ug 1922989)
  • Loading branch information
cgsheeh committed Oct 29, 2024
1 parent 42618b2 commit 6e06643
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,8 @@ def process():
revision_json = {
"bug_id": bug_id,
"revision_id": revision.id,
"date_approved": date_approved,
# Set `date_approved` only when a landing has been detected.
"date_approved": date_approved if date_landed else None,
"date_created": revision.dateCreated,
"date_modified": revision.dateModified,
"date_landed": date_landed,
Expand Down

0 comments on commit 6e06643

Please sign in to comment.