Minor tweaks to Redis config and comments

This commit is contained in:
Mark Veidemanis 2021-12-27 21:46:53 +00:00
parent 2cdc43e1cd
commit 5c75dfeeee
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 3 additions and 1 deletions

View File

@ -4,4 +4,5 @@ from redis import StrictRedis
# Project imports # Project imports
from settings import settings from settings import settings
r = StrictRedis(unix_socket_path=settings.RedisSocket, db=0) # Define the Redis endpoint to the socket
r = StrictRedis(unix_socket_path=settings.DB.RedisSocket, db=int(settings.DB.DB))

View File

@ -1,4 +1,5 @@
# Other library imports # Other library imports
from ConfigObject import ConfigObject from ConfigObject import ConfigObject
# Load the configuration
settings = ConfigObject(filename="settings.ini") settings = ConfigObject(filename="settings.ini")