mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
pass int for redis db
This commit is contained in:
parent
23ce4b983e
commit
dfeb5a7c7b
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ def stream_view(request, stream_id):
|
|||
"""
|
||||
try:
|
||||
redis_host = getattr(settings, "REDIS_HOST", "localhost")
|
||||
redis_client = redis.Redis(host=settings.REDIS_HOST, port=6379, db=getattr(settings, "REDIS_DB", "0"))
|
||||
redis_client = redis.Redis(host=settings.REDIS_HOST, port=6379, db=int(getattr(settings, "REDIS_DB", "0")))
|
||||
|
||||
# Retrieve the channel by the provided stream_id.
|
||||
channel = Channel.objects.get(channel_number=stream_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue