diff --git a/vnpy/trader/database/database_sql.py b/vnpy/trader/database/database_sql.py index 6415c1bb..6111cfae 100644 --- a/vnpy/trader/database/database_sql.py +++ b/vnpy/trader/database/database_sql.py @@ -311,8 +311,6 @@ def init_models(db: Database, driver: Driver): else: for c in chunked(dicts, 50): DbTickData.insert_many(c).on_conflict_replace().execute() - DbTickData.insert_many( - c).on_conflict_replace().execute() db.connect() db.create_tables([DbBarData, DbTickData])