Skip to content

Commit

Permalink
Add media support in e-mail (#20)
Browse files Browse the repository at this point in the history
* ignore html in prettier

* add media support for forecasts
  • Loading branch information
acannistra authored Jan 8, 2025
1 parent 6f6c820 commit a3b84e8
Show file tree
Hide file tree
Showing 3 changed files with 348 additions and 417 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mailtemplate.html
2 changes: 2 additions & 0 deletions avalanche.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from os import path
from cachetools import func

import logging
from prometheus_client import Histogram

centers_histogram = Histogram(
Expand Down Expand Up @@ -74,4 +75,5 @@ def get_forecast(self, center_id: str, zone_id: str):
_url = (
API_BASE + f"/product?type=forecast&center_id={center_id}&zone_id={zone_id}"
)
print(f"Fetching forecast from {center_id} {zone_id} (url: {_url})")
return requests.get(_url).json()
Loading

0 comments on commit a3b84e8

Please sign in to comment.