|
|
|
|
@ -124,14 +124,8 @@ def query_movie():
|
|
|
|
|
query = query_data() |
|
|
|
|
view_results = [] |
|
|
|
|
|
|
|
|
|
# NOTE: query string can be submitted from a link or form input |
|
|
|
|
# form input comes from the query.html template and the links |
|
|
|
|
# come from the file_listing/index.html template |
|
|
|
|
if 'query' in request.form: |
|
|
|
|
query.raw_query_str = request.form['query'] |
|
|
|
|
elif 'query' in request.args and 'rel_path' in request.args: |
|
|
|
|
query.raw_query_str = request.args['query'] |
|
|
|
|
query.rel_path = request.args['rel_path'] |
|
|
|
|
|
|
|
|
|
q_res = doQueryAlgorithm(query) |
|
|
|
|
errors = q_res['errors'] |
|
|
|
|
@ -146,7 +140,6 @@ def query_movie():
|
|
|
|
|
return render_template( |
|
|
|
|
'tmdb/query.html', |
|
|
|
|
view_data = view_results, |
|
|
|
|
rel_path = query.rel_path, |
|
|
|
|
debug_str = '{} \n {} \n'.format( |
|
|
|
|
util.dumpObject(query), |
|
|
|
|
util.dumpObject(view_results) |
|
|
|
|
|