mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
Template the Datatables JS
Add Links to user screen Add Public IP list to user screen Add Watch history to user screen
This commit is contained in:
parent
c4504d8be0
commit
6a026d510d
12 changed files with 536 additions and 335 deletions
|
@ -75,14 +75,14 @@ class DataTables(object):
|
|||
% (column_data['column_string'], table_name, where,
|
||||
order, custom_where)
|
||||
|
||||
# logger.debug(u"Query string: %s" % query)
|
||||
|
||||
filtered = self.ssp_db.select(query)
|
||||
if search_value == '':
|
||||
totalcount = len(filtered)
|
||||
else:
|
||||
totalcount = self.ssp_db.select('SELECT COUNT(*) from %s' % table_name)[0][0]
|
||||
|
||||
# logger.debug(u"Query string: %s" % query)
|
||||
|
||||
result = filtered[start:(start + length)]
|
||||
output = {'result': result,
|
||||
'filteredCount': len(filtered),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue