From fa368b1263cd3cd96040ec7ea43dfb69ea66052e Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 28 Oct 2022 15:10:48 -0400 Subject: [PATCH] 'Just getitem access the 'action' from req msg' --- piker/ui/order_mode.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/piker/ui/order_mode.py b/piker/ui/order_mode.py index 1ea10e07..f6fd7cb3 100644 --- a/piker/ui/order_mode.py +++ b/piker/ui/order_mode.py @@ -56,7 +56,7 @@ from ._position import ( from ._forms import FieldsForm from ._window import MultiStatus from ..clearing._messages import ( - Cancel, + # Cancel, Order, Status, # BrokerdOrder, @@ -1011,12 +1011,11 @@ async def process_trade_msg( case Status(resp='canceled'): # delete level line from view mode.on_cancel(oid) - req = Cancel(**msg.req) - log.cancel(f'Canceled {req.action}:{oid}') + log.cancel(f'Canceled {msg.req["action"]}:{oid}') case Status( resp='triggered', - # req=Order(exec_mode='dark') # TODO: + # req=Order(exec_mode='dark') # TODO: msgspec req={'exec_mode': 'dark'}, ): # TODO: UX for a "pending" clear/live order