updated comments
This commit is contained in:
7
path.py
7
path.py
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user