Fix migration syntax error

This commit is contained in:
Matthias
2022-09-03 19:34:38 +02:00
parent ed4cc18cdd
commit 16573b19e3
2 changed files with 4 additions and 3 deletions

View File

@@ -369,7 +369,8 @@ class LocalTrade():
orders = self.select_filled_orders()
if not orders:
return self.open_date_utc
return max([self.open_date_utc, max(o.order_filled_utc for o in orders)])
return max([self.open_date_utc,
max(o.order_filled_utc for o in orders if o.order_filled_utc)])
@property
def open_date_utc(self):