mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
Fix bug on info pages for Shows.
Return error parameter to Datatables on exception. Return draw counter to Datatables.
This commit is contained in:
parent
76279928bd
commit
ba1dfea9eb
3 changed files with 17 additions and 4 deletions
|
@ -177,8 +177,12 @@ class DataTables(object):
|
|||
# Build grand totals
|
||||
totalcount = self.ssp_db.select('SELECT COUNT(id) from %s' % table_name)[0][0]
|
||||
|
||||
# Get draw counter
|
||||
draw_counter = int(parameters['draw'])
|
||||
|
||||
result = filtered[parameters['start']:(parameters['start'] + parameters['length'])]
|
||||
output = {'result': result,
|
||||
'draw': draw_counter,
|
||||
'filteredCount': len(filtered),
|
||||
'totalCount': totalcount}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue