Skip to content

Commit

Permalink
fix: set correct trigger interval
Browse files Browse the repository at this point in the history
  • Loading branch information
origox committed Dec 30, 2023
1 parent 01a59f1 commit a75592a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,15 @@ def main() -> None:
syncHelper = syncronizer.Syncronizer(fitbitClient=fitbitClient, dbClient=dbClient)

# Schedule syncronizer
schedule.every(interval=1).minutes.do(
schedule.every(interval=10).minutes.do(
job_func=syncHelper.SyncFitbitActivitiesToInfluxdb,
date=datetime.now().strftime("%Y-%m-%d"),
)

schedule.every(interval=1).minutes.do(
schedule.every(interval=10).minutes.do(
job_func=syncHelper.SyncFitbitToInfluxdb,
start_date=datetime.now().strftime("%Y-%m-%d"),
end_date=datetime.now().strftime("%Y-%m-%d"),
# start_date="2023-12-01",
# end_date="2023-12-10",
)

while True:
Expand Down

0 comments on commit a75592a

Please sign in to comment.