Skip to content

Commit

Permalink
fix latest_timestamp not go when no record
Browse files Browse the repository at this point in the history
  • Loading branch information
foolcage committed Aug 2, 2018
1 parent 03af3aa commit 4d8c7b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fooltrader/datasource/eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def eos_ram_to_kafka():

logger.info("start_date:{},end_date:{}".format(start_date, end_date))

latest_timestamp = end_date

for item in ram_trade.find(condition):
tick = to_tick(item)

Expand Down

0 comments on commit 4d8c7b9

Please sign in to comment.