Skip to content

Commit

Permalink
Fix bug introduced in previous commit (#118)
Browse files Browse the repository at this point in the history
Due to a variable renaming, the `examples` API did not work anymore.
This is now fixed.
  • Loading branch information
Hannah Bast committed Nov 28, 2024
1 parent 24a43bf commit d4e356a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def examples(request, backend):
examples_tsv = command.handle(returnLog=True, slug=[backend])
except Exception as e:
return HttpResponse("Error: " + str(e), status=500)
return HttpResponse(tsv, content_type="text/tab-separated-values")
return HttpResponse(examples_tsv, content_type="text/tab-separated-values")


# Handle API request like https://qlever.cs.uni-freiburg.de/api/prefixes/wikidata
Expand Down

0 comments on commit d4e356a

Please sign in to comment.