From 0cc294c81aaf91abc3b28674093b0e4f1c3d6ef5 Mon Sep 17 00:00:00 2001 From: Andrii Ostapenko Date: Sun, 28 Mar 2021 22:52:50 -0500 Subject: [PATCH] Fix for gravatar email processing Change-Id: Ibb974437a68157e01dc89cc17ae29aaa5ea0949d Signed-off-by: Andrii Ostapenko --- stackalytics/processor/user_processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stackalytics/processor/user_processor.py b/stackalytics/processor/user_processor.py index d4eeaae82..b754c17b7 100644 --- a/stackalytics/processor/user_processor.py +++ b/stackalytics/processor/user_processor.py @@ -217,7 +217,7 @@ def merge_user_profiles(domains_index, user_profiles): # collect ordinary fields for key in ['seq', 'user_name', 'user_id', 'github_id', 'launchpad_id', - 'companies', 'static', 'zanata_id']: + 'companies', 'static', 'zanata_id', 'gravatar_email']: value = next((v.get(key) for v in user_profiles if v.get(key)), None) if value: