update
This commit is contained in:
@@ -20,6 +20,8 @@ cursor = conn.cursor()
|
||||
cursor.execute("SELECT * FROM data ORDER BY timestamp DESC LIMIT 10")
|
||||
|
||||
rows = cursor.fetchall()
|
||||
rows.reverse() # Reverse the order in Python (to get ascending order)
|
||||
|
||||
|
||||
# Display the results
|
||||
for row in rows:
|
||||
|
||||
Reference in New Issue
Block a user