Skip to content

Commit

Permalink
update function_app.py cron
Browse files Browse the repository at this point in the history
change cron to 5:05am local time
edit timestamp text to "PDT"
  • Loading branch information
cander67 authored Mar 20, 2024
1 parent 4cf141b commit 8c0b421
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
Expand Up @@ -4,7 +4,7 @@
app = func.FunctionApp()

@app.function_name(name = "skiForecastTimer")
@app.schedule(schedule="0 0 12 * * *", arg_name="skiForecastTimer", run_on_startup=False, use_monitor=False)
@app.schedule(schedule="0 5 12 * * *", arg_name="skiForecastTimer", run_on_startup=False, use_monitor=False)
def cron(skiForecastTimer: func.TimerRequest) -> None:
import os
import json
Expand Down Expand Up @@ -174,7 +174,7 @@ def cron(skiForecastTimer: func.TimerRequest) -> None:
html += '<script>'
html += f'{js}'
html += '</script>'
html += f"<h3>Updated: {local_time.strftime('%Y-%m-%d %H:%M')} (PT)</h3>\n"
html += f"<h3>Updated: {local_time.strftime('%Y-%m-%d %H:%M')} (PDT)</h3>\n"
html += '<section id="notes">\n<h3>NOTES</h3>\n'
html += '<p>\nClick or hover over table cells for more data.\n</p>\n'
html += '<p>\nKey:\n</p>\n'
Expand Down

0 comments on commit 8c0b421

Please sign in to comment.