Compare commits
3 Commits
41010b8a7b
...
0.2.15
Author | SHA1 | Date | |
---|---|---|---|
fd3e8751fe | |||
21ea1aa56f
|
|||
eefc8d5b21
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
if [ "$1" == "test" ]; then
|
if [ "$1" == "test" ]; then
|
||||||
POSTFIX="-test"
|
POSTFIX="-test"
|
||||||
IMAGE_TAG="latest"
|
IMAGE_TAG=${CI_COMMIT_SHA}
|
||||||
else
|
else
|
||||||
POSTFIX=""
|
POSTFIX=""
|
||||||
fi
|
fi
|
||||||
|
@ -65,7 +65,7 @@ def get_products():
|
|||||||
try:
|
try:
|
||||||
conn = psycopg2.connect()
|
conn = psycopg2.connect()
|
||||||
with conn.cursor() as cursor:
|
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()
|
products = cursor.fetchall()
|
||||||
return {'products': [product[0] for product in products]}
|
return {'products': [product[0] for product in products]}
|
||||||
finally:
|
finally:
|
||||||
|
Reference in New Issue
Block a user