Repository navigation
Constructing Queries #108
TelloViz
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Constructing Queries
Our program needed a way to transform the front end filters and parameters into a valid query string that the API could recognize.
My Solution
to the function
Example list of tuples:
BackendController.request_searchthen passes the unaltered list toSearchHandler.handle_request_searchthen passes the parameter toconstruct_queryreturns the query as a string that the API recognizes as a valid query.Example Query String:
SearchHandler.handle_request_searchthen uses this constructed query to call the function:construct_queryImplementationTesting
construct_queryAll reactions