We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7f0a3b commit 0c7e29bCopy full SHA for 0c7e29b
1 file changed
app.py
@@ -181,11 +181,9 @@ def sparql_form():
181
def tools():
182
return render('tools.html')
183
184
-#TODO: test on lido.nfdi4objects.net
185
@app.route(f"/lido2rdf/convert", methods=["POST"])
186
def lido_convert():
187
- ''' Proxy to LIDO converter service '''
188
- converter_url = os.getenv('LIDO_CONVERTER_HOST', 'http://converter:5000')
+ converter_url = os.getenv('LIDO_PROXY_URL','http://converter:5000/convert')
189
files = { k : io.BytesIO(v.read()) for k,v in request.files.items()}
190
format = request.form.get('format','turtle')
191
return requests.post(converter_url, files=files, data={'format':format}).text
0 commit comments