Fix broken search on history tables.

Fix bug in history search which wouldn't search for full title.
Fix bug where user info pages crashes if user no longer in friends list.
Fix bug with query structure, mainly affected incomplete user IP list.
User user id on Top user in home stats.
Add missing Xbox icon.
This commit is contained in:
Tim 2015-07-17 21:47:27 +02:00
parent 30c20b3061
commit dd90f2e375
7 changed files with 32 additions and 13 deletions

View file

@ -80,9 +80,9 @@ class DataTables(object):
% (column_data['column_string'], table_name, join, group_by,
where, order)
else:
query = 'SELECT * FROM (SELECT * FROM (SELECT %s FROM %s %s GROUP BY %s) %s %s) %s' \
% (column_data['column_string'], table_name, join, group_by,
where, order, custom_where)
query = 'SELECT * FROM (SELECT %s FROM %s %s %s GROUP BY %s) %s %s' \
% (column_data['column_string'], table_name, join, custom_where, group_by,
where, order)
else:
if custom_where == '':
query = 'SELECT %s FROM %s %s %s %s' \