Format the output from releasing funds nicer
This commit is contained in:
parent
de232b1847
commit
3f88ab3727
|
@ -298,7 +298,9 @@ class IRCCommands(object):
|
|||
msg(f"No such reference: {spl[1]}")
|
||||
return
|
||||
rtrn = agora.release_funds(tx)
|
||||
msg(dumps(rtrn))
|
||||
message = rtrn["message"]
|
||||
message_long = rtrn["response"]["data"]["message"]
|
||||
msg(f"{message} - {message_long}")
|
||||
|
||||
class nuke(object):
|
||||
name = "nuke"
|
||||
|
|
|
@ -179,7 +179,9 @@ class Transactions(object):
|
|||
self.irc.sendmsg(f"All checks passed, releasing funds for {stored_trade['id']} / {reference}")
|
||||
rtrn = self.agora.release_funds(stored_trade["id"])
|
||||
self.agora.agora.contact_message_post(stored_trade["id"], "Thanks! Releasing now :)")
|
||||
self.irc.sendmsg(dumps(rtrn))
|
||||
message = rtrn["message"]
|
||||
message_long = rtrn["response"]["data"]["message"]
|
||||
self.irc.sendmsg(f"{message} - {message_long}")
|
||||
|
||||
def new_trade(self, trade_id, buyer, currency, amount, amount_xmr):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue