We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f546f31 commit f559a36Copy full SHA for f559a36
fingr/weather.py
@@ -34,9 +34,9 @@ def fetch_weather(
34
api_requests_total.labels(status="success").inc()
35
36
# Track weather data freshness
37
- if updated:
+ if updated == "Data-Modified":
38
weather_data_freshness.labels(status="updated").inc()
39
- else:
+ elif updated == "Data-Not-Expired":
40
weather_data_freshness.labels(status="cached").inc()
41
42
return forecast, updated
0 commit comments