Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 544bd3cd authored by Nivesh Krishna's avatar Nivesh Krishna
Browse files

Merge branch 'fix-json' into 'master'

send response in json for images

Closes #92

See merge request !155
parents c9e924ad 6fbffdbb
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -619,7 +619,7 @@ def search():


    # output_format
    # output_format
    output_format = request.form.get('format', 'html')
    output_format = request.form.get('format', 'html')
    if output_format not in ['html', 'rss']:
    if output_format not in ['html', 'json', 'csv', 'rss']:
        output_format = 'html'
        output_format = 'html'


    # check if there is query (not None and not an empty string)
    # check if there is query (not None and not an empty string)