diff --git a/topogram_client/__init__.py b/topogram_client/__init__.py index 2daf88c..c9b5280 100644 --- a/topogram_client/__init__.py +++ b/topogram_client/__init__.py @@ -129,7 +129,7 @@ def create_node(self, topogramId, id=None, x=None, y=None, data={}): assert type(data) is dict if id : assert type(id) is str if x : assert type(x) is float or type(x) is int - if y : assert type(y) is float or type(x) is int + if y : assert type(y) is float or type(y) is int el = { "id" : id, @@ -167,7 +167,7 @@ def create_edge(self, topogramId, source, target, name=None, data={}): """POST Create a single edge. Returns the created edge.""" assert type(data) is dict assert type(source) is str - assert type(source) is str + assert type(target) is str if name : assert type(name) is str print name el = {