Update page_bids.py
This commit is contained in:
parent
49e4072f2a
commit
acc135d22e
@ -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 = swap_client.listBids(sent=sent, filters=filters)
|
||||||
|
|
||||||
|
bids_count = len(bids)
|
||||||
|
|
||||||
page_data = {
|
page_data = {
|
||||||
'bid_states': listBidStates(),
|
'bid_states': listBidStates(),
|
||||||
}
|
}
|
||||||
@ -201,4 +203,5 @@ def page_bids(self, url_split, post_string, sent=False, available=False, receive
|
|||||||
'summary': summary,
|
'summary': summary,
|
||||||
'bids': [(format_timestamp(b[0]),
|
'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],
|
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
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user