'Returns data used for filtering the result'

def get_filter_data(self, post):

    filters = []
    for ids in post:
        try:
            (row_id, answer_id) = ids.split(',')
            filters.append({'row_id': int(row_id), 'answer_id': int(answer_id)})
        except:
            return filters
    return filters
