diff --git a/main.py b/main.py index 932c7ff..269852b 100644 --- a/main.py +++ b/main.py @@ -2330,9 +2330,10 @@ async def fastapi_query_all_records_by_date(querydate: str) -> dict[str, list]: data = redis_client.get(cache_key) if data: - logger.info(f"return from cache redis") # 使用自定义的反序列化函数 - return msgpack.unpackb(data, object_hook=decode_datetime) + results = msgpack.unpackb(data, object_hook=decode_datetime) + logger.info(f"return from cache redis") + return results logger.info(f"query from influxdb")