Update __init__.py

pull/451/head
midoks 2 years ago
parent a470b3c53c
commit aa60d52662
  1. 7
      route/__init__.py

@ -36,6 +36,9 @@ import db
import mw
import config_api
import common
common.init()
app = Flask(__name__, template_folder='templates/default')
app.config.version = config_api.config_api().getVersion()
@ -107,11 +110,9 @@ if mw.isDebugMode():
app.debug = True
app.config.version = app.config.version + str(time.time())
import common
common.init()
# ---------- error function start -----------------
# ---------- error function start -----------------
def getErrorNum(key, limit=None):
key = mw.md5(key)
num = cache.get(key)

Loading…
Cancel
Save