diff --git a/basicswap/http_server.py b/basicswap/http_server.py index e08ceeb..fa7c9a7 100644 --- a/basicswap/http_server.py +++ b/basicswap/http_server.py @@ -289,12 +289,14 @@ class HttpHandler(BaseHTTPRequestHandler): + '

' + ('Sent ' if sent else '') + 'Offers

' content += '' - content += '' + content += '' for o in offers: coin_from_name = getCoinName(Coins(o.coin_from)) coin_to_name = getCoinName(Coins(o.coin_to)) amount_to = (o.amount_from * o.rate) // COIN - content += ''.format(o.offer_id.hex(), coin_from_name, coin_to_name, format8(o.amount_from), format8(amount_to), format8(o.rate)) + content += ''.format( + time.strftime('%Y-%m-%d %H:%M', time.localtime(o.created_at)), + o.offer_id.hex(), coin_from_name, coin_to_name, format8(o.amount_from), format8(amount_to), format8(o.rate)) content += '
Offer IDCoin FromCoin ToAmount FromAmount ToRate
AtOffer IDCoin FromCoin ToAmount FromAmount ToRate
{0}{1}{2}{3}{4}{5}
{0}{1}{2}{3}{4}{5}{6}
' content += '

home

' @@ -445,9 +447,11 @@ class HttpHandler(BaseHTTPRequestHandler): + '

' + ('Sent ' if sent else '') + 'Bids

' content += '' - content += '' + content += '' for b in bids: - content += ''.format(b.bid_id.hex(), b.offer_id.hex(), getBidState(b.state), getTxState(b.initiate_txn_state), getTxState(b.participate_txn_state)) + content += ''.format( + time.strftime('%Y-%m-%d %H:%M', time.localtime(b.created_at)), + b.bid_id.hex(), b.offer_id.hex(), getBidState(b.state), getTxState(b.initiate_txn_state), getTxState(b.participate_txn_state)) content += '
Bid IDOffer IDBid StatusITX StatusPTX Status
AtBid IDOffer IDBid StatusITX StatusPTX Status
{0}{1}{2}{3}{4}
{0}{1}{2}{3}{4}{5}
' content += '

home

'