From 37fd817b1461c085f00facbf9d40eb1b7d336abc Mon Sep 17 00:00:00 2001 From: Connor Sheehan Date: Fri, 1 Nov 2024 19:46:11 -0400 Subject: [PATCH] revisions: convert empty `fieldValue` to `None` We check to see if the query was empty and return `None`, however the query will be non-empy but then `fieldValue` will be empty, which fails when submitting to BigQuery. --- stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats.py b/stats.py index 3fa6394..6f59b92 100755 --- a/stats.py +++ b/stats.py @@ -148,7 +148,7 @@ def get_bug_id(revision: DiffDb.Revision, bug_id_query) -> Optional[int]: if not bug_id_query_result: return None - return bug_id_query_result.fieldValue + return bug_id_query_result.fieldValue or None class PhabricatorEdgeConstant(IntEnum):