diff --git a/kdb-bot/src/bot_graphql/abc/data_query_with_history_abc.py b/kdb-bot/src/bot_graphql/abc/data_query_with_history_abc.py index 8f45dd74..71ec3318 100644 --- a/kdb-bot/src/bot_graphql/abc/data_query_with_history_abc.py +++ b/kdb-bot/src/bot_graphql/abc/data_query_with_history_abc.py @@ -31,7 +31,8 @@ class DataQueryWithHistoryABC(DataQueryABC): f""" SELECT * FROM {self._table_name} - WHERE Id = {entry.id}; + WHERE Id = {entry.id} + ORDER BY DateTo DESC; """ )