Skip to content

Commit

Permalink
update function_app.py
Browse files Browse the repository at this point in the history
move azure identity and azure storage import statements to inside timer function
  • Loading branch information
cander67 committed Feb 18, 2024
1 parent 25feea4 commit b5581c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions function_app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from azure.identity import DefaultAzureCredential
from azure.storage.blob import BlobServiceClient, ContainerClient, ContentSettings
import azure.functions as func

app = func.FunctionApp()
Expand All @@ -16,6 +14,8 @@ def cron(skiForecastTimer: func.TimerRequest) -> None:
import src.get_endpoints as get_endpoints
import src.get_forecasts as get_forecasts
import src.proc_forecasts as proc_forecasts
from azure.identity import DefaultAzureCredential
from azure.storage.blob import BlobServiceClient, ContainerClient, ContentSettings

# Get current time
now = datetime.now()
Expand Down

0 comments on commit b5581c7

Please sign in to comment.