fix(api): usability tests - tasks stats sort
This commit is contained in:
parent
8b67418e9d
commit
401787efcb
2 changed files with 1 additions and 3 deletions
|
|
@ -33,9 +33,6 @@ class DatabaseRequestHandler:
|
|||
def add_param(self, key, value):
|
||||
self.params[key] = value
|
||||
|
||||
def set_order_by(self, order_by):
|
||||
self.order_clause = order_by
|
||||
|
||||
def set_sort_by(self, sort_by):
|
||||
self.sort_clause = sort_by
|
||||
|
||||
|
|
|
|||
|
|
@ -400,6 +400,7 @@ def get_task_statistics(test_id: int):
|
|||
db_handler.add_join("JOIN ut_tests_signals uts ON utt.task_id = uts.task_id")
|
||||
db_handler.add_constraint("utt.test_id = %(test_id)s", {'test_id': test_id})
|
||||
db_handler.set_group_by("utt.task_id, utt.title")
|
||||
db_handler.set_sort_by("utt.task_id ASC")
|
||||
|
||||
rows = db_handler.fetchall()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue