Read command file's contents

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

View File

@ -15,7 +15,7 @@ commands={
def initCommands(file):
global commands
commands = json.loads(file)
commands = json.loads(open(file, "r").read())
@app.route("/build/<site>", methods=["POST"])
def buildHandler(site):