05/24 Fix UI/UX

This commit is contained in:
2026-05-24 17:59:24 -04:00
parent 07e0ae02c2
commit 6605484927
8 changed files with 154 additions and 24 deletions
+6 -2
View File
@@ -190,10 +190,14 @@ def bid_json(bid_id):
@bid_tracker_bp.route("/list/json")
@login_required
def list_json():
"""Return all bids as JSON for the AJAX list panel."""
"""Return paginated bids as JSON for the AJAX list panel."""
status_filter = request.args.get("status", "")
try:
bids = get_all_bids(status_filter=status_filter)
offset = int(request.args.get("offset", 0))
except (ValueError, TypeError):
offset = 0
try:
bids = get_all_bids(status_filter=status_filter, limit=50, offset=offset)
except Exception as e:
return jsonify({"error": str(e)}), 500