05/24 Fix UI/UX
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user