Fixed bug
This commit is contained in:
parent
090e28c40c
commit
2d0c8e29e4
4
hook.py
4
hook.py
|
@ -13,7 +13,7 @@ app = Flask("thing")
|
|||
commands={
|
||||
}
|
||||
|
||||
def initCommands():
|
||||
def initCommands(file):
|
||||
global commands
|
||||
commands = json.loads(file)
|
||||
|
||||
|
@ -38,5 +38,5 @@ def buildHandler(site):
|
|||
# wants this here
|
||||
return "Ok"
|
||||
|
||||
initCommands()
|
||||
initCommands("commands.json")
|
||||
app.run(host="fdd2:cbf2:61bd::2")
|
||||
|
|
Loading…
Reference in New Issue