From ee503f76f2e800fe9a33bd77149a62b37243f3f9 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Thu, 9 Mar 2023 10:39:34 +0100 Subject: [PATCH] Order history tables #246 --- kdb-bot/src/bot_graphql/abc/data_query_with_history_abc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; """ )