diff --git a/auto_cache.py b/auto_cache.py index a137c94..32dcd26 100644 --- a/auto_cache.py +++ b/auto_cache.py @@ -15,7 +15,7 @@ def query_all_records_by_date_with_type_flow(date: str): def auto_cache_data(): - redis_client = redis.redis(host='localhost', port=6379, db=0) + redis_client = redis.Redis(host='localhost', port=6379, db=0) items = ['queryallrecordsbydatewithtype_[DATE]_flow']