mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 01:25:16 +00:00
sort searched queries by creation time, assuming the newer queries are usually more relevant
This commit is contained in:
parent
e85d3c3c9f
commit
4e8888ce2f
@ -358,7 +358,7 @@ class Query(BaseModel):
|
||||
if term.isdigit():
|
||||
where |= cls.id == term
|
||||
|
||||
return cls.select().where(where)
|
||||
return cls.select().where(where).order_by(cls.created_at.desc())
|
||||
|
||||
@classmethod
|
||||
def update_instance(cls, query_id, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user