fixed history fetch (order) + podman example command
This commit is contained in:
parent
d09eb3be44
commit
a3284f023c
@ -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" -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
|
podman run -d --pod=aliexpress --name ali-cron alipricetrack_cron:1.0.0
|
||||||
|
@ -72,6 +72,7 @@ def get_history():
|
|||||||
cursor.execute("""
|
cursor.execute("""
|
||||||
SELECT uuid, quantity, discount_percentage, price, currency, h_timestamp
|
SELECT uuid, quantity, discount_percentage, price, currency, h_timestamp
|
||||||
FROM history
|
FROM history
|
||||||
|
ORDER BY h_timestamp
|
||||||
""")
|
""")
|
||||||
results = cursor.fetchall()
|
results = cursor.fetchall()
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user