Skip to content

Commit e810ad2

Browse files
committed
Update python version in deployment pipeline
1 parent ff73b42 commit e810ad2

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.azuredevops/deploy-azure-function.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
steps:
2828
- task: UsePythonVersion@0
2929
inputs:
30-
versionSpec: "3.10"
30+
versionSpec: "3.11"
3131
addToPath: true
3232
architecture: "x64"
33-
displayName: "Use Python 3.10"
33+
displayName: "Use Python 3.11"
3434

3535
- task: AzureCLI@2
3636
displayName: Add agent ip to key vault firewall

v2/http_trigger_async_exec/http_trigger_async_execution.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ async def query_current_time(session: aiohttp.ClientSession, tz: str):
1313
f"http://worldtimeapi.org/api/timezone/{tz}"
1414
) as response:
1515
data = await response.json()
16-
print(
17-
f"In timezone {tz} it is currently {data['datetime'].strftime('%H:%M')}"
18-
)
16+
print(f"In timezone {tz} it is currently {data['datetime']}")
1917

2018
async def main():
2119
timezones = ["Europe/Berlin", "America/New_York", "Asia/Tokyo"]

0 commit comments

Comments
 (0)