From a892f23db87349ed866c81cea27ee567138b7c66 Mon Sep 17 00:00:00 2001 From: Haibo Lin Date: Mon, 18 Mar 2019 15:17:57 +0800 Subject: [PATCH] Use latest module record JIRA: COMPOSE-3382 --- product_listings_manager/products.py | 1 + 1 file changed, 1 insertion(+) diff --git a/product_listings_manager/products.py b/product_listings_manager/products.py index 38e2612..24aafa1 100644 --- a/product_listings_manager/products.py +++ b/product_listings_manager/products.py @@ -268,6 +268,7 @@ def get_module(compose_dbh, name, stream): FROM modules WHERE name = %(name)s AND stream = %(stream)s + ORDER BY version DESC """ dbc = compose_dbh.cursor() Products.execute_query(dbc, qry, **qargs)