3 Commits

Author SHA1 Message Date
fd3e8751fe order by name
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2024-02-01 09:28:26 +01:00
21ea1aa56f Merge branch 'main' of gitea.hottis.de:moerp/elo-rezept-rechner
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-01-31 16:46:36 +01:00
eefc8d5b21 fix image tag 2024-01-31 16:46:31 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
if [ "$1" == "test" ]; then
POSTFIX="-test"
IMAGE_TAG="latest"
IMAGE_TAG=${CI_COMMIT_SHA}
else
POSTFIX=""
fi

View File

@ -65,7 +65,7 @@ def get_products():
try:
conn = psycopg2.connect()
with conn.cursor() as cursor:
cursor.execute('SELECT name FROM nutrition_table')
cursor.execute('SELECT name FROM nutrition_table ORDER BY name')
products = cursor.fetchall()
return {'products': [product[0] for product in products]}
finally: