Fix bug on info pages for Shows.

Return error parameter to Datatables on exception.
Return draw counter to Datatables.
This commit is contained in:
Tim 2015-07-18 23:27:20 +02:00
parent 76279928bd
commit ba1dfea9eb
3 changed files with 17 additions and 4 deletions

View file

@ -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}