diff --git a/files.py b/files.py index 2fb6389..abfd13b 100644 --- a/files.py +++ b/files.py @@ -271,6 +271,8 @@ def files_sp(): noo, grouping, how_many, offset, size, folders, cwd, root = ViewingOptions( request ) entries=[] + people = Person.query.all() + # per storage path, add entries to view settings=Settings.query.first() paths = settings.storage_path.split("#") @@ -283,7 +285,7 @@ def files_sp(): else: entries+=GetEntriesInFlatView( cwd, prefix, noo, offset, how_many ) - return render_template("files.html", page_title='View Files (Storage Path)', entry_data=entries, noo=noo, grouping=grouping, how_many=how_many, offset=offset, size=size, folders=folders, cwd=cwd, root=root ) + return render_template("files.html", page_title='View Files (Storage Path)', entry_data=entries, noo=noo, grouping=grouping, how_many=how_many, offset=offset, size=size, folders=folders, cwd=cwd, root=root, people=people ) ################################################################################ diff --git a/main.py b/main.py index 5767c15..8d8223b 100644 --- a/main.py +++ b/main.py @@ -20,8 +20,10 @@ import socket ####################################### Flask App globals ####################################### PROD_HOST="pa_web" + hostname = socket.gethostname() print( "Running on: {}".format( hostname) ) + app = Flask(__name__) ### what is this value? I gather I should change it? diff --git a/templates/files.html b/templates/files.html index 874ebce..78c78c3 100644 --- a/templates/files.html +++ b/templates/files.html @@ -12,7 +12,6 @@ caption-side: bottom; } -