mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2024-11-10 17:25:59 +08:00
limit use db0, celery use db4
This commit is contained in:
parent
90c4d6e1c0
commit
4f78eeef15
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue