We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cd955e4 + caf8a8c commit 4c8f6b0Copy full SHA for 4c8f6b0
1 file changed
app/opensense.py
@@ -61,7 +61,7 @@ def get_temperature():
61
cached_data = redis_client.get("temperature_data")
62
if cached_data:
63
print("Using cached data from Redis.")
64
- cached_result = cached_data.decode('utf-8')
+ cached_result = cached_data
65
default_stats = {"total_sensors": 0, "null_count": 0}
66
return cached_result, default_stats
67
except redis.RedisError as e:
0 commit comments