Ajusted the ownerlist from env varable if bank to be less destructive
This commit is contained in:
parent
124df7eab1
commit
dc3a34651f
@ -15,9 +15,9 @@ class LoadConfig:
|
||||
self.config = json.load(fp)
|
||||
|
||||
# Initialize config
|
||||
if self.config["ownerlist"] != []:
|
||||
self.ownerlist = self.config["ownerlist"]
|
||||
else:
|
||||
|
||||
self.ownerlist = self.config["ownerlist"]
|
||||
if self.ownerlist == []:
|
||||
self.ownerlist = [int(i) for i in os.getenv('ownerlist').split(',')]
|
||||
self.defaultprefix = self.config["prefix"]
|
||||
self.version = self.config["version"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user