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)
|
self.config = json.load(fp)
|
||||||
|
|
||||||
# Initialize config
|
# Initialize config
|
||||||
if self.config["ownerlist"] != []:
|
|
||||||
self.ownerlist = self.config["ownerlist"]
|
self.ownerlist = self.config["ownerlist"]
|
||||||
else:
|
if self.ownerlist == []:
|
||||||
self.ownerlist = [int(i) for i in os.getenv('ownerlist').split(',')]
|
self.ownerlist = [int(i) for i in os.getenv('ownerlist').split(',')]
|
||||||
self.defaultprefix = self.config["prefix"]
|
self.defaultprefix = self.config["prefix"]
|
||||||
self.version = self.config["version"]
|
self.version = self.config["version"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user