settings changed

This commit is contained in:
abbaslanbay 2023-02-07 11:42:34 +03:00
parent 6b71721ce8
commit 1aaa07361c
2 changed files with 3 additions and 3 deletions

View file

@ -62,7 +62,7 @@ search:
# remove format to deny access, use lower case.
# formats: [html, csv, json, rss]
formats:
- html
- json
server:
# If you change port, bind_address or base_url don't forget to rebuild

View file

@ -658,8 +658,8 @@ def search():
if output_format not in OUTPUT_FORMATS:
output_format = 'html'
if output_format not in settings['search']['formats']:
flask.abort(403)
# if output_format not in settings['search']['formats']:
# flask.abort(403)
# check if there is query (not None and not an empty string)
if not request.form.get('q'):