Remove returntype

This commit is contained in:
Matthias 2022-02-20 16:34:35 +01:00
parent a24586cd41
commit fddacfedaa
3 changed files with 4 additions and 4 deletions

View File

@ -1358,6 +1358,9 @@ class FreqtradeBot(LoggingMixin):
return True return True
order_obj = trade.select_order_by_order_id(order_id) order_obj = trade.select_order_by_order_id(order_id)
if not order_obj:
raise DependencyException(
f"Order_obj not found for {order_id}. This should not have happened.")
self.handle_order_fee(trade, order_obj, order) self.handle_order_fee(trade, order_obj, order)
trade.update_trade(order_obj) trade.update_trade(order_obj)

View File

@ -209,9 +209,6 @@ def check_migrate(engine, decl_base, previous_tables) -> None:
f"backup: {table_back_name}, {order_table_bak_name}") f"backup: {table_back_name}, {order_table_bak_name}")
migrate_trades_and_orders_table( migrate_trades_and_orders_table(
decl_base, inspector, engine, table_back_name, cols, order_table_bak_name, cols_orders) decl_base, inspector, engine, table_back_name, cols, order_table_bak_name, cols_orders)
# Reread columns - the above recreated the table!
inspector = inspect(engine)
cols = inspector.get_columns('trades')
if 'orders' not in previous_tables and 'trades' in previous_tables: if 'orders' not in previous_tables and 'trades' in previous_tables:
logger.info('Moving open orders to Orders table.') logger.info('Moving open orders to Orders table.')

View File

@ -160,7 +160,7 @@ class Order(_DECL_BASE):
return (f'Order(id={self.id}, order_id={self.order_id}, trade_id={self.ft_trade_id}, ' return (f'Order(id={self.id}, order_id={self.order_id}, trade_id={self.ft_trade_id}, '
f'side={self.side}, order_type={self.order_type}, status={self.status})') f'side={self.side}, order_type={self.order_type}, status={self.status})')
def update_from_ccxt_object(self, order) -> 'Order': def update_from_ccxt_object(self, order):
""" """
Update Order from ccxt response Update Order from ccxt response
Only updates if fields are available from ccxt - Only updates if fields are available from ccxt -