fixed BUG-36: view details showing all entries -- its a bit crap as its only import dir, but its functional again
This commit is contained in:
12
files.py
12
files.py
@@ -218,9 +218,17 @@ def GetEntriesInFolderView( cwd, prefix, noo, offset, how_many ):
|
||||
################################################################################
|
||||
# /file_list -> show detailed file list of files from import_path(s)
|
||||
################################################################################
|
||||
@app.route("/file_list_ip", methods=["GET"])
|
||||
@app.route("/file_list_ip", methods=["GET","POST"])
|
||||
def file_list_ip():
|
||||
return render_template("file_list.html", page_title='View File Details (Import Path)', entry_data=Entry.query.order_by(Entry.name).all())
|
||||
noo, grouping, how_many, offset, size, folders, cwd, root = ViewingOptions( request )
|
||||
entries=[]
|
||||
|
||||
settings=Settings.query.first()
|
||||
paths = settings.import_path.split("#")
|
||||
for path in paths:
|
||||
prefix = SymlinkName("Import",path,path+'/')
|
||||
entries+=GetEntriesInFlatView( cwd, prefix, noo, offset, how_many )
|
||||
return render_template("file_list.html", page_title='View File Details (Import Path)', entry_data=entries, noo=noo, how_many=how_many, offset=offset )
|
||||
|
||||
################################################################################
|
||||
# /files -> show thumbnail view of files from import_path(s)
|
||||
|
||||
Reference in New Issue
Block a user