Skip to content

Commit

Permalink
Merge branch 'release/1.19.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
lrosenstrom committed Sep 17, 2020
2 parents ce51cc3 + 3e5206b commit e658a76
Show file tree
Hide file tree
Showing 72 changed files with 3,842 additions and 2,299 deletions.
4 changes: 4 additions & 0 deletions serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys
import logging
import argparse
import warnings
from viewer import app

log = logging.getLogger()
Expand All @@ -12,4 +13,7 @@
argp.add_argument('--port', '-p', type=int)
args = argp.parse_args()

# Warning from rdfxml that should be ignored
warnings.filterwarnings('ignore', message = 'Assertions on rdflib.term.BNode')

app.run(port=args.port,host='0.0.0.0')
5 changes: 4 additions & 1 deletion viewer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,11 @@ def thingview(path, suffix=None):

whelk_accept_header = _get_view_data_accept_header(request, suffix)
query_params = _filter_query_params(request.args)

resource_id = _get_served_uri(request.url_root, path)

if g.site.get('applyInverseOf', False):
query_params['_applyInverseOf'] = 'true'

resp = _proxy_request(request, session, accept_header=whelk_accept_header,
url_path=resource_id, query_params=query_params)

Expand Down
Loading

0 comments on commit e658a76

Please sign in to comment.