aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/network_graph/network_graph.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wqflask/wqflask/network_graph/network_graph.py b/wqflask/wqflask/network_graph/network_graph.py
index ca3d5bb3..a45eaad4 100644
--- a/wqflask/wqflask/network_graph/network_graph.py
+++ b/wqflask/wqflask/network_graph/network_graph.py
@@ -80,6 +80,9 @@ class NetworkGraph(object):
target_trait = target[0]
target_db = target[1]
+ if str(this_trait) == str(target_trait) and str(this_db) == str(target_db):
+ continue
+
target_samples = target_db.group.all_samples_ordered()
target_sample_data = target_trait.data