From 9e5258b8df7e3351b545553954cf0bec6dc3d310 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Tue, 21 May 2019 11:11:51 +0800 Subject: [PATCH] [Del] remove duplicate line --- vnpy/trader/database/database_sql.py | 2 -- 1 file changed, 2 deletions(-) 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])