Deployment improvements

This commit is contained in:
2020-12-07 23:27:41 +01:00
committed by Oskar
parent 5d9f9e92ae
commit 9a5210a656
3 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,5 @@
from flask import Flask, request
import sys
import json
import string
import random
@ -6,7 +7,7 @@ import atexit
app = Flask(__name__)
filename = 'db.json'
filename = sys.argv[1] if len(sys.argv) > 1 else 'db.json'
id_length = 16
data = {}