fixing deletr_from_trade
This commit is contained in:
parent
54977d432d
commit
cef22f01ce
|
@ -269,12 +269,13 @@ def delete_from_trade(lot: Lot, devices: List):
|
|||
|
||||
drop_of_lot = []
|
||||
without_confirms = []
|
||||
# import pdb; pdb.set_trace()
|
||||
for dev in devices:
|
||||
if dev.trading_for_web(lot) in ['NeedConfirmation', 'Confirm', 'NeedConfirmRevoke']:
|
||||
drop_of_lot.append(dev)
|
||||
dev.reset_owner()
|
||||
|
||||
if lot.trade.confirm:
|
||||
if not lot.trade.confirm:
|
||||
drop_of_lot.append(dev)
|
||||
without_confirms.append(dev)
|
||||
dev.reset_owner()
|
||||
|
|
Reference in New Issue