Fix some type errors

This commit is contained in:
Matthias
2023-03-15 21:09:25 +01:00
parent b469addffb
commit d45599ca3b
3 changed files with 16 additions and 17 deletions

View File

@@ -373,7 +373,7 @@ def load_trades_from_db(db_url: str, strategy: Optional[str] = None) -> pd.DataF
filters = []
if strategy:
filters.append(Trade.strategy == strategy)
trades = trade_list_to_dataframe(Trade.get_trades(filters).all())
trades = trade_list_to_dataframe(list(Trade.get_trades(filters).all()))
return trades