Fixed issue with get lists from the query string.
Added mechanics query to views. Simplified Python and JavaScript code.