I was using sqlite however moved to MySqL
Sqlite code that worked:
@app.route(\'/api/v1/users/user\', methods=[\'GET\']) def api_filter(): query_pa