diff --git a/path.py b/path.py index 0ca2418..91340ea 100644 --- a/path.py +++ b/path.py @@ -17,6 +17,9 @@ class PathType(db.Model): def __repr__(self): return "".format(self.id, self.name ) +################################################################################ +# Class describing Path & in the database via sqlalchemy +################################################################################ class Path(db.Model): __tablename__ = "path" id = db.Column(db.Integer, db.Sequence('path_id_seq'), primary_key=True ) @@ -28,6 +31,10 @@ class Path(db.Model): def __repr__(self): return f"" +################################################################################ +# helper function to find StoragePathNames - used in html for move DBox to show +# potential storage paths to move files into +################################################################################ def StoragePathNames(): ret=[] sps=Path.query.join(PathType).filter(PathType.name=='Storage').all()