diff options
author | Lei Yan | 2014-02-05 16:12:11 -0600 |
---|---|---|
committer | Lei Yan | 2014-02-05 16:12:11 -0600 |
commit | 7b7ac2d766b6ed83be21f654a1526ace9fdab930 (patch) | |
tree | 64066f801d46a5f0137f5ff55cdfbeab0ae0c428 /wqflask | |
parent | ee026ab745359197e966bdcaaa33f06c8e7256e0 (diff) | |
download | genenetwork2-7b7ac2d766b6ed83be21f654a1526ace9fdab930.tar.gz |
On branch master
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/maintenance/dataset/utilities.py | 9 |
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 |