Add predictions to api (fixes)

This commit is contained in:
shadowik 2024-12-01 19:56:55 +04:00
parent f2224ed6b0
commit b3d053b06f

View File

@ -30,7 +30,7 @@ router = APIRouter(
def daterange(start_date: datetime.date, end_date: datetime.date): def daterange(start_date: datetime.date, end_date: datetime.date):
days = int((end_date - start_date).days) days = int((end_date - start_date).days)
for n in range(days): for n in range(days + 1):
yield datetime.datetime.combine(start_date + datetime.timedelta(n), datetime.datetime.min.time()) yield datetime.datetime.combine(start_date + datetime.timedelta(n), datetime.datetime.min.time())