From 643208f35f8906debb2659d56df20ae68894750d Mon Sep 17 00:00:00 2001 From: c-d-p Date: Tue, 29 Jun 2021 15:43:28 +1000 Subject: [PATCH] fixed the import path to be able to select all of the people under the ai context menu --- files.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files.py b/files.py index abfd13b..a01e5dc 100644 --- a/files.py +++ b/files.py @@ -248,6 +248,9 @@ def files_ip(): noo, grouping, how_many, offset, size, folders, cwd, root = ViewingOptions( request ) entries=[] + people = Person.query.all() + + # per import path, add entries to view settings=Settings.query.first() paths = settings.import_path.split("#") @@ -260,7 +263,7 @@ def files_ip(): else: entries+=GetEntriesInFlatView( cwd, prefix, noo, offset, how_many ) - return render_template("files.html", page_title='View Files (Import 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 (Import Path)', entry_data=entries, noo=noo, grouping=grouping, how_many=how_many, offset=offset, size=size, folders=folders, cwd=cwd, root=root, people=people ) ################################################################################ # /files -> show thumbnail view of files from storage_path