updated comments

This commit is contained in:
2021-08-11 17:29:53 +10:00
parent 5c3087739d
commit a8f5dc4e62

View File

@@ -17,6 +17,9 @@ class PathType(db.Model):
def __repr__(self):
return "<id: {}, name={}>".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"<id: {self.id}, path_prefix: {self.path_prefix}, num_files={self.num_files}, type={self.type}>"
################################################################################
# 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()