Compare commits
3 Commits
41010b8a7b
...
0.2.15
Author | SHA1 | Date | |
---|---|---|---|
fd3e8751fe | |||
21ea1aa56f
|
|||
eefc8d5b21
|
@ -2,7 +2,7 @@
|
||||
|
||||
if [ "$1" == "test" ]; then
|
||||
POSTFIX="-test"
|
||||
IMAGE_TAG="latest"
|
||||
IMAGE_TAG=${CI_COMMIT_SHA}
|
||||
else
|
||||
POSTFIX=""
|
||||
fi
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user