Skip to content

Commit

Permalink
fixing api/content 500 error
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Benzoni committed Mar 14, 2024
1 parent d9b6d05 commit 4634e53
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ def content_api():
# Error message if neither is provided
return jsonify({'error': 'Please provide at least a title or content query.'})
else:
results, csv_data = None
results, csv_data = content(request)
return jsonify({'results': results, 'csv_data': csv_data, 'countries': COUNTRIES, 'languages': LANGUAGES, 'indicator_metadata': INDICATOR_METADATA})

Expand Down

0 comments on commit 4634e53

Please sign in to comment.