23
loading...
This website collects cookies to deliver better user experience
/api/v1/resources/books?column_filter
we notice that inside the api_filter(), the variable query
is declared as a string. However, right below follows a series of boolean expressions that make our filtering possible.query += ' id=? AND'
. cur.execute()
, which holds our query and column_filter(s). Basically meaning when our JSON gets displayed, to_filter.fetchall
is going to show us a display of all the filters inside our query statement. Just because you have the query, it don't mean I will show you the results.
fetchall()
using a filter in this case, it's to_filter, populated as a result of the prior logical expression.