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. # remove format to deny access, use lower case.
# formats: [html, csv, json, rss] # formats: [html, csv, json, rss]
formats: formats:
- html - json
server: server:
# If you change port, bind_address or base_url don't forget to rebuild # 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: if output_format not in OUTPUT_FORMATS:
output_format = 'html' output_format = 'html'
if output_format not in settings['search']['formats']: # if output_format not in settings['search']['formats']:
flask.abort(403) # flask.abort(403)
# check if there is query (not None and not an empty string) # check if there is query (not None and not an empty string)
if not request.form.get('q'): if not request.form.get('q'):