Fix generation #8

Merged
maxim merged 12 commits from front-2-fix-gen into front-2 2024-12-02 22:21:06 +04:00
Showing only changes of commit b3d053b06f - Show all commits

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())