From 1600b58bab71c19430ebf83c0182e40442a65817 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Sun, 10 Sep 2023 11:50:14 -0700 Subject: [PATCH] Fix contract finalization logging --- api/logics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/logics.py b/api/logics.py index f8b182f1..89d037b7 100644 --- a/api/logics.py +++ b/api/logics.py @@ -1342,7 +1342,7 @@ class Logics: pass send_notification.delay(order_id=order.id, message="order_taken_confirmed") order.log( - f"Contract formalized. Maker: Robot({order.maker.robot},{order.maker.username}). Taker: Robot({order.taker.robot},{order.taker.username}). API median price {order.currency.exchange_rate} {Currency.currency_choices(order.currency.currency).label}/BTC. Premium is {order.premium}. Contract size {order.last_satoshis} Sats" + f"Contract formalized. Maker: Robot({order.maker.robot.id},{order.maker}). Taker: Robot({order.taker.robot.id},{order.taker}). API median price {order.currency.exchange_rate} {Currency.currency_choices[order.currency.currency-1][1]}/BTC. Premium is {order.premium}%. Contract size {order.last_satoshis} Sats" ) return True