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)