This commit is contained in:
Mateusz Gruszczyński
2025-08-16 13:28:09 +02:00
parent cd8d418371
commit 2edbd6475f
2 changed files with 17 additions and 12 deletions

2
app.py
View File

@@ -1952,7 +1952,7 @@ def suggest_products():
@app.route("/all_products")
def all_products():
sort = request.args.get("sort", "popularity")
limit = request.args.get("limit", type=int) or 100
limit = request.args.get("limit", type=int) or 50
offset = request.args.get("offset", type=int) or 0
rows = db.session.query(Item.name, Item.list_id).distinct().all()