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

Commit 6fbffdbb authored by Nivesh Krishna's avatar Nivesh Krishna
Browse files

send response in json for images

parent c9e924ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -619,7 +619,7 @@ def search():

    # output_format
    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'

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