Fixed bug

This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-31 17:32:31 +02:00
parent 090e28c40c
commit 2d0c8e29e4
1 changed files with 2 additions and 2 deletions

View File

@ -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")