fixing missing module in calls

This commit is contained in:
Gaël Honorez
2023-12-31 19:27:28 +01:00
parent c5aff4b47c
commit abf46eb357

View File

@@ -73,9 +73,9 @@ class SubStackTask:
async def run_daily_at_6_am(self): async def run_daily_at_6_am(self):
while True: while True:
now = datetime.now() now = datetime.datetime.now()
# Calculate the time until 6 AM next day # Calculate the time until 6 AM next day
next_run = (now + timedelta(days=1)).replace(hour=6, minute=5, second=0, microsecond=0) next_run = (now + datetime.timedelta(days=1)).replace(hour=6, minute=5, second=0, microsecond=0)
sleep_seconds = (next_run - now).total_seconds() sleep_seconds = (next_run - now).total_seconds()
# Wait until the next run time # Wait until the next run time