From 1ad8c848c459ca0a9e26aa186195e2fdc15c7b4e Mon Sep 17 00:00:00 2001 From: W1CDN Date: Sat, 24 Jun 2023 11:43:06 -0500 Subject: [PATCH] Fix bug on production. --- api_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api_app.py b/api_app.py index fa3284f..de4f9f8 100644 --- a/api_app.py +++ b/api_app.py @@ -116,7 +116,7 @@ class Packets(Resource): data = select_frames(conn, n = n, from_ = from_, url_params = request.args.to_dict()) # Sort by created date, descending (https://stackoverflow.com/a/45266808) #data.sort(key=operator.itemgetter('created'), reverse=True) - return {data}, 200 # return data and 200 OK code + return {'data':data}, 200 # return data and 200 OK code # Read config config = read_config()