Skip to content

Commit 9ee586c

Browse files
authored
Fix bug with end date
1 parent 5bdbe89 commit 9ee586c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

GeneratePresentation/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def main(req: func.HttpRequest) -> func.HttpResponse:
160160
# end date is optional, so if not provided use today
161161
endParam = req.params.get('end')
162162
if not endParam:
163-
endParam = datetime.now("%Y-%m-%d")
163+
endParam = datetime.now().strftime("%Y-%m-%d")
164164

165165
# add 1 day to end date so we include all of the day
166166
ending = datetime.strptime(endParam, "%Y-%m-%d")
@@ -205,4 +205,5 @@ def main(req: func.HttpRequest) -> func.HttpResponse:
205205
mimetype="text/html",
206206
body=message,
207207
status_code=http_status
208-
)
208+
209+
)

0 commit comments

Comments
 (0)