From 7b7ac2d766b6ed83be21f654a1526ace9fdab930 Mon Sep 17 00:00:00 2001 From: Lei Yan Date: Wed, 5 Feb 2014 16:12:11 -0600 Subject: On branch master --- wqflask/maintenance/dataset/utilities.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'wqflask') diff --git a/wqflask/maintenance/dataset/utilities.py b/wqflask/maintenance/dataset/utilities.py index 30e135cb..04ca0438 100644 --- a/wqflask/maintenance/dataset/utilities.py +++ b/wqflask/maintenance/dataset/utilities.py @@ -32,7 +32,10 @@ def overlap(dic1, dic2): values2 = [] for key in dic1.keys(): if key in dic2: - keys.append(key) - values1.append(dic1[key]) - values2.append(dic2[key]) + value1 = dic1[key] + value2 = dic2[key] + if value1 and value2: + keys.append(key) + values1.append(value1) + values2.append(value2) return keys, values1, values2 -- cgit v1.2.3