From 1971e9d10235c495d5bc0a799d727313036fdc80 Mon Sep 17 00:00:00 2001 From: rugod <43984892+chenyu1st@users.noreply.github.com> Date: Sun, 16 Oct 2022 11:39:17 +0800 Subject: [PATCH] fix redis rows (#1907) * fix redis rows Co-authored-by: hhyo --- sql/engines/redis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/engines/redis.py b/sql/engines/redis.py index eda4779755..78072208bb 100644 --- a/sql/engines/redis.py +++ b/sql/engines/redis.py @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -""" +""" @author: hhyo、yyukai @license: Apache Licence @file: redis.py @@ -72,7 +72,7 @@ def get_all_databases(self, **kwargs): for i in conn.info("Keyspace").keys() if len(i.split("db")) == 2 ] - rows = max(dbs, [16]) + rows = max(dbs + [16]) db_list = [str(x) for x in range(int(rows))] result.rows = db_list