Add AGROVOC lookup support

This works locally, but I don't think it will work on App Engine
because csv-metadata-quality uses requests-cache and creates the
agrovoc-response-cache.sqlite file in the current working directory.
This commit is contained in:
2021-03-13 23:49:24 +02:00
parent 9aab2ae83f
commit e7dd8d1421
2 changed files with 14 additions and 0 deletions

View File

@ -57,6 +57,11 @@ def process():
args.append("-x")
args.append(request.form["excludeText"])
if "agrovocCheckbox" in request.form:
if "agrovocText" in request.form:
args.append("-a")
args.append(request.form["agrovocText"])
if "unsafe" in request.form:
args.append("-u")