Skip to content

Commit

Permalink
Merge pull request #1 from noranhe/main
Browse files Browse the repository at this point in the history
修复导入csv结束时间显示问题+删除用不到的代码
  • Loading branch information
vnpy authored Dec 6, 2021
2 parents 08ac4dd + ecde4ee commit 6b48b83
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions vnpy_datamanager/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ def import_data_from_csv(
if not start:
start = bar.datetime

end = bar.datetime

# insert into database
self.database.save_bar_data(bars)

end = bar.datetime
return start, end, count

def output_data_to_csv(
Expand Down Expand Up @@ -233,9 +234,6 @@ def download_tick_data(
end=datetime.now(DB_TZ)
)

if not self.datafeed.inited:
self.datafeed.init()

data = self.datafeed.query_tick_history(req)

if data:
Expand Down

0 comments on commit 6b48b83

Please sign in to comment.