Skip to content
Snippets Groups Projects
Commit d739075c authored by Noah Jefferson Baumann's avatar Noah Jefferson Baumann
Browse files

fixed models.py to remove edges id

parent cd9088d9
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,6 @@ class Node(Base): ...@@ -32,7 +32,6 @@ class Node(Base):
# Example for Edge model # Example for Edge model
class Edge(Base): class Edge(Base):
__tablename__ = 'edges' __tablename__ = 'edges'
id = Column(String, primary_key=True)
source = Column(String) source = Column(String)
target = Column(String) target = Column(String)
label = Column(String) label = Column(String)
...@@ -45,7 +44,6 @@ class Edge(Base): ...@@ -45,7 +44,6 @@ class Edge(Base):
def to_dict(self): def to_dict(self):
return { return {
'id': self.id,
'source': self.source, 'source': self.source,
'target': self.target, 'target': self.target,
'label': self.label, 'label': self.label,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment