Skip to content
Snippets Groups Projects
Commit d040c39c authored by PEREZ-RAMIREZ Julian's avatar PEREZ-RAMIREZ Julian
Browse files

max

parent ff212db7
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ function initFromUrl() { ...@@ -24,7 +24,7 @@ function initFromUrl() {
async function fetchData() { async function fetchData() {
let url = ''; let url = '';
if (currentTarget === 'items') { if (currentTarget === 'items') {
url = `${ROUTE}:${PORT}/items?sortBy=price&sort=${currentSort}&onlyBought=true`; url = `${ROUTE}:${PORT}/items?sortBy=price&sort=${currentSort}&onlyBought=true&max=3`;
} else { } else {
url = `${ROUTE}:${PORT}/wishLists/sortedByTotalBought?sort=${currentSort}`; url = `${ROUTE}:${PORT}/wishLists/sortedByTotalBought?sort=${currentSort}`;
} }
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
{% endblock %} {% endblock %}
{% block body %} {% block body %}
{% if target == 'items' %} <div class="container">
{% if target == 'items' %}
<h3 id="pageTitle">Top 3 most expensive purchased items</h3> <h3 id="pageTitle">Top 3 most expensive purchased items</h3>
{% else %} {% else %}
<h3 id="pageTitle">Top 3 wishlists with the highest total purchase amount</h3> <h3 id="pageTitle">Top 3 wishlists with the highest total purchase amount</h3>
...@@ -71,5 +72,7 @@ ...@@ -71,5 +72,7 @@
</table> </table>
</section> </section>
</div>
<script src="{{ asset('js/insights.js') }}"></script> <script src="{{ asset('js/insights.js') }}"></script>
{% endblock %} {% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment