Reformat project
This commit is contained in:
13
main.py
13
main.py
@@ -1,8 +1,9 @@
|
||||
import json
|
||||
import pickle
|
||||
from redis import StrictRedis
|
||||
from string import digits
|
||||
from os import urandom
|
||||
from string import digits
|
||||
|
||||
from redis import StrictRedis
|
||||
|
||||
from utils.logging.log import *
|
||||
|
||||
@@ -106,5 +107,9 @@ def initConf():
|
||||
def initMain():
|
||||
global r, g
|
||||
initConf()
|
||||
r = StrictRedis(unix_socket_path=config["RedisSocket"], db=config["RedisDBEphemeral"]) # Ephemeral - flushed on quit
|
||||
g = StrictRedis(unix_socket_path=config["RedisSocket"], db=config["RedisDBPersistent"]) # Persistent
|
||||
r = StrictRedis(
|
||||
unix_socket_path=config["RedisSocket"], db=config["RedisDBEphemeral"]
|
||||
) # Ephemeral - flushed on quit
|
||||
g = StrictRedis(
|
||||
unix_socket_path=config["RedisSocket"], db=config["RedisDBPersistent"]
|
||||
) # Persistent
|
||||
|
||||
Reference in New Issue
Block a user