From a91fd7985968d21323f5a82328f76b577d9e088b Mon Sep 17 00:00:00 2001 From: Sheppy Date: Sun, 27 Sep 2020 20:45:44 +0200 Subject: [PATCH] user oder by timestamp for hist data --- database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database.py b/database.py index 2717670..2a89aa1 100644 --- a/database.py +++ b/database.py @@ -37,7 +37,7 @@ class DatabaseConnection: '''Get historical data for a player''' cursor = self.connHistorical.cursor() - cursor.execute("SELECT * FROM playerHistoricalData where id = ?", (playerId,)) + cursor.execute("SELECT * FROM playerHistoricalData where id = ? order by timestamp ASC", (playerId,)) rows = cursor.fetchall() PLAYER_ID = 0