fixed history fetch (order) + podman example command

This commit is contained in:
Sam Hadow committed 2024-03-10 00:15:32 +01:00
1 parent d09eb3be44
commit a3284f023c
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -5,6 +5,6 @@ podman pod create --name aliexpress -p 8086:8080
podman run -d --pod=aliexpress -e POSTGRES_DB="aliexpress" -e POSTGRES_USER="postgres" -e POSTGRES_PASSWORD="postgres" -v /home/data/podman/aliexpress/db:/var/lib/postgresql/data:Z --name ali-db docker.io/postgres
podman run -d --pod=aliexpress -e POSTGRES_DB="aliexpress" -e POSTGRES_USER="postgres" -e POSTGRES_PASSWORD="postgres" --name ali-app alipricetrack:1.0.0
podman run -d --pod=aliexpress -e POSTGRES_DB="aliexpress" -e POSTGRES_USER="postgres" -e POSTGRES_PASSWORD="postgres" -v /home/data/podman/aliexpress/cookies.json:/app/cookies.json:Z --name ali-app alipricetrack:1.0.0
podman run -d --pod=aliexpress --name ali-cron alipricetrack_cron:1.0.0
+1
View File
@@ -72,6 +72,7 @@ def get_history():
cursor.execute("""
SELECT uuid, quantity, discount_percentage, price, currency, h_timestamp
FROM history
ORDER BY h_timestamp
""")
results = cursor.fetchall()
cursor.close()