feat(api): changed metrics list order
This commit is contained in:
parent
e141dfa538
commit
320279a818
1 changed files with 1 additions and 1 deletions
|
|
@ -253,7 +253,7 @@ def get_all(project_id, user_id, include_series=False):
|
|||
WHERE metrics.project_id = %(project_id)s
|
||||
AND metrics.deleted_at ISNULL
|
||||
AND (user_id = %(user_id)s OR metrics.is_public)
|
||||
ORDER BY metrics.edited_at, metrics.created_at;""",
|
||||
ORDER BY metrics.edited_at DESC, metrics.created_at DESC;""",
|
||||
{"project_id": project_id, "user_id": user_id}
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue