Fix generation #8
@ -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())
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user