back out new viewer, it does not work in PROD for storage at all
This commit is contained in:
8
files.py
8
files.py
@@ -566,15 +566,17 @@ def newview_img(id):
|
||||
@login_required
|
||||
def view_img(id):
|
||||
OPT=Options( request )
|
||||
return redirect( "/new_view/" + id );
|
||||
# return redirect( "/new_view/" + id );
|
||||
objs = {}
|
||||
lst = eids.split(',')
|
||||
OPT.view_eids = request.form['eids'].rstrip(',')
|
||||
lst = OPT.view_eids.split(',')
|
||||
print( f"lst={lst}" )
|
||||
for e in Entry.query.join(File).filter(Entry.id.in_(lst)).all():
|
||||
objs[e.id]=e
|
||||
# put locn data back into array format
|
||||
for face in e.file_details.faces:
|
||||
face.locn = json.loads(face.locn)
|
||||
return render_template("viewer.html", current=int(id), eids=eids, objs=objs, OPT=OPT )
|
||||
return render_template("viewer.html", current=int(id), eids=OPT.view_eids, objs=objs, OPT=OPT )
|
||||
|
||||
# route called from front/end - if multiple images are being transformed, each transorm == a separate call
|
||||
# to this route (and therefore a separate transorm job. Each reponse allows the f/e to check the
|
||||
|
||||
Reference in New Issue
Block a user