Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(422)

Unified Diff: telemetry/telemetry/value/__init__.py

Issue 1741063002: [TBMv2] Fix page deserialization (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Address Ned's comment Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | telemetry/telemetry/value/translate_common_values.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/value/__init__.py
diff --git a/telemetry/telemetry/value/__init__.py b/telemetry/telemetry/value/__init__.py
index e4381117025e37c10a17ce45e6c4d5876a11cf98..dbd7085da49a74eac37859b88959fe4310497ca9 100644
--- a/telemetry/telemetry/value/__init__.py
+++ b/telemetry/telemetry/value/__init__.py
@@ -297,7 +297,7 @@ class Value(object):
d['description'] = None
page_id = value_dict.get('page_id', None)
- if page_id:
+ if page_id is not None:
d['page'] = page_dict[int(page_id)]
else:
d['page'] = None
« no previous file with comments | « no previous file | telemetry/telemetry/value/translate_common_values.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698