From acc135d22e46fc0b6222e25bd548e50ef001530c Mon Sep 17 00:00:00 2001
From: gerlofvanek <info@gerlofvanek.com>
Date: Mon, 26 Feb 2024 21:36:30 +0100
Subject: [PATCH] Update page_bids.py

---
 basicswap/ui/page_bids.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/basicswap/ui/page_bids.py b/basicswap/ui/page_bids.py
index b2e95df..b0582f1 100644
--- a/basicswap/ui/page_bids.py
+++ b/basicswap/ui/page_bids.py
@@ -184,6 +184,8 @@ def page_bids(self, url_split, post_string, sent=False, available=False, receive
 
     bids = swap_client.listBids(sent=sent, filters=filters)
 
+    bids_count = len(bids)
+
     page_data = {
         'bid_states': listBidStates(),
     }
@@ -201,4 +203,5 @@ def page_bids(self, url_split, post_string, sent=False, available=False, receive
         'summary': summary,
         'bids': [(format_timestamp(b[0]),
                  b[2].hex(), b[3].hex(), strBidState(b[5]), strTxState(b[7]), strTxState(b[8]), b[11]) for b in bids],
+        'bids_count': bids_count,  # Pass the count of offers to the template
     })