Commit 9117be79 authored by stephen.wang's avatar stephen.wang

解决EURUSD 抓取重复问题

parent 1f4ead3c
......@@ -309,7 +309,7 @@ class ExrateSync(DataSync):
def do_sync(self, max_date=dt.today()):
logger.info(f'start sync datas for type[EXRATE]')
for ticker in self.exrate_tickers:
last_one = re.get_last_one(ticker=ticker, max_date=max_date)
last_one = re.get_last_one(ticker=ticker)
start_date = next_workday(last_one['date']) if last_one else self.start_date
page = 0
while True:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment