user oder by timestamp for hist data

This commit is contained in:
2020-09-27 20:45:44 +02:00
parent 8a2f9c1707
commit a91fd79859

View File

@@ -37,7 +37,7 @@ class DatabaseConnection:
'''Get historical data for a player''' '''Get historical data for a player'''
cursor = self.connHistorical.cursor() 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() rows = cursor.fetchall()
PLAYER_ID = 0 PLAYER_ID = 0