Skip to content

Commit

Permalink
fix redis rows (hhyo#1907)
Browse files Browse the repository at this point in the history
* fix redis rows

Co-authored-by: hhyo <rtttte@qq.com>
(cherry picked from commit 1971e9d)
  • Loading branch information
chenyu1st authored and nick2wang committed Nov 8, 2022
1 parent 9a450b1 commit b452679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/engines/redis.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: UTF-8 -*-
"""
"""
@author: hhyo、yyukai
@license: Apache Licence
@file: redis.py
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b452679

Please sign in to comment.