10 lines
246 B
Python
10 lines
246 B
Python
from database import TradeDB
|
|
db = TradeDB()
|
|
try:
|
|
sql = "SELECT * FROM ws_price_validation WHERE DATE(ts) = '2026-08-10' LIMIT 5"
|
|
rows = db.conn.execute(sql).fetchall()
|
|
for row in rows:
|
|
print(dict(row))
|
|
finally:
|
|
db.close()
|