Skip to content

Commit

Permalink
accept extended metadata param
Browse files Browse the repository at this point in the history
  • Loading branch information
birm authored Aug 25, 2021
1 parent 3a3d8e7 commit cb750f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions SlideServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ def testRoute():

@app.route("/data/one/<filepath>", methods=['GET'])
def singleSlide(filepath):
res = dev_utils.getMetadata(filepath, app.config['UPLOAD_FOLDER'])
extended = request.args.get('extended')
res = dev_utils.getMetadata(filepath, app.config['UPLOAD_FOLDER'], extended)
if (hasattr(res, 'error')):
return flask.Response(json.dumps(res), status=500)
else:
Expand All @@ -203,7 +204,8 @@ def singleThumb(filepath):

@app.route("/data/many/<filepathlist>", methods=['GET'])
def multiSlide(filepathlist):
res = dev_utils.getMetadataList(json.loads(filepathlist), app.config['UPLOAD_FOLDER'])
request.args.get('extended')
res = dev_utils.getMetadataList(json.loads(filepathlist), app.config['UPLOAD_FOLDER'], extended)
if (hasattr(res, 'error')):
return flask.Response(json.dumps(res), status=500)
else:
Expand Down

0 comments on commit cb750f6

Please sign in to comment.