limit use db0, celery use db4

This commit is contained in:
BennyThink 2021-12-30 18:15:43 +08:00
parent 90c4d6e1c0
commit 4f78eeef15
No known key found for this signature in database
GPG Key ID: 6CD0DBDA5235D481

View File

@ -26,9 +26,9 @@ class Redis:
def __init__(self):
super(Redis, self).__init__()
if REDIS is None:
self.r = fakeredis.FakeStrictRedis(host=REDIS, db=4, decode_responses=True)
self.r = fakeredis.FakeStrictRedis(host=REDIS, db=0, decode_responses=True)
else:
self.r = redis.StrictRedis(host=REDIS, db=4, decode_responses=True)
self.r = redis.StrictRedis(host=REDIS, db=0, decode_responses=True)
db_banner = "=" * 20 + "DB data" + "=" * 20
quota_banner = "=" * 20 + "Quota" + "=" * 20