From 3545b13fec6f041bb72ab7f355d16fc6eeec7032 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 10 Jul 2020 20:20:18 +0200 Subject: add homepage id to graph --- cli/app/sql/models/graph.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/app/sql/models/graph.py') diff --git a/cli/app/sql/models/graph.py b/cli/app/sql/models/graph.py index fdea32a..fbfb09c 100644 --- a/cli/app/sql/models/graph.py +++ b/cli/app/sql/models/graph.py @@ -13,6 +13,7 @@ class Graph(Base): """Table for storing references to graphs""" __tablename__ = 'graph' id = Column(Integer, primary_key=True) + home_page_id = Column(Integer, nullable=True) path = Column(String(64, convert_unicode=True), nullable=False) title = Column(String(64, convert_unicode=True), nullable=False) username = Column(String(32, convert_unicode=True), nullable=False) @@ -26,6 +27,7 @@ class Graph(Base): def toJSON(self): return { 'id': self.id, + 'home_page_id': self.home_page_id, 'path': self.path, 'title': self.title, 'username': self.username, -- cgit v1.2.3-70-g09d2