Fix bug on production.
This commit is contained in:
		@@ -116,7 +116,7 @@ class Packets(Resource):
 | 
				
			|||||||
        data = select_frames(conn, n = n, from_ = from_, url_params = request.args.to_dict())
 | 
					        data = select_frames(conn, n = n, from_ = from_, url_params = request.args.to_dict())
 | 
				
			||||||
        # Sort by created date, descending (https://stackoverflow.com/a/45266808)
 | 
					        # Sort by created date, descending (https://stackoverflow.com/a/45266808)
 | 
				
			||||||
        #data.sort(key=operator.itemgetter('created'), reverse=True)
 | 
					        #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
 | 
					# Read config
 | 
				
			||||||
config = read_config()
 | 
					config = read_config()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user