aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance
diff options
context:
space:
mode:
authorLei Yan2014-02-05 16:12:11 -0600
committerLei Yan2014-02-05 16:12:11 -0600
commit7b7ac2d766b6ed83be21f654a1526ace9fdab930 (patch)
tree64066f801d46a5f0137f5ff55cdfbeab0ae0c428 /wqflask/maintenance
parentee026ab745359197e966bdcaaa33f06c8e7256e0 (diff)
downloadgenenetwork2-7b7ac2d766b6ed83be21f654a1526ace9fdab930.tar.gz
On branch master
Diffstat (limited to 'wqflask/maintenance')
-rw-r--r--wqflask/maintenance/dataset/utilities.py9
1 files changed, 6 insertions, 3 deletions
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