Update app.py
Browse files
app.py
CHANGED
|
@@ -22,6 +22,14 @@ LA_TZ = pytz.timezone("America/Los_Angeles")
|
|
| 22 |
cached_rates = {}
|
| 23 |
last_updated = None # Store last update in LA time
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
def fetch_exchange_rates():
|
| 26 |
"""Fetch exchange rates from API and store them for 24 hours (Los Angeles time)."""
|
| 27 |
global cached_rates, last_updated
|
|
|
|
| 22 |
cached_rates = {}
|
| 23 |
last_updated = None # Store last update in LA time
|
| 24 |
|
| 25 |
+
|
| 26 |
+
@app.route('/')
|
| 27 |
+
|
| 28 |
+
def home():
|
| 29 |
+
|
| 30 |
+
return ""
|
| 31 |
+
|
| 32 |
+
|
| 33 |
def fetch_exchange_rates():
|
| 34 |
"""Fetch exchange rates from API and store them for 24 hours (Los Angeles time)."""
|
| 35 |
global cached_rates, last_updated
|