From 4634e53f578a79d0fba579bcf57b644ed6ff730d Mon Sep 17 00:00:00 2001 From: Peter Benzoni Date: Wed, 13 Mar 2024 23:05:51 -0400 Subject: [PATCH] fixing api/content 500 error --- app.py | 1 - 1 file changed, 1 deletion(-) diff --git a/app.py b/app.py index 254d927..d1f5119 100644 --- a/app.py +++ b/app.py @@ -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})