remove lambda function from config.py

This commit is contained in:
doanguyen 2019-12-26 12:23:52 +01:00 committed by Son Nguyen Kim
parent e2e9cc6b5d
commit d026c596ac
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ import subprocess
from dotenv import load_dotenv
SHA1 = lambda: subprocess.getoutput("git rev-parse HEAD")
SHA1 = subprocess.getoutput("git rev-parse HEAD")
ROOT_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))

View file

@ -4,7 +4,7 @@ from app.monitor.base import monitor_bp
@monitor_bp.route("/git")
def git_sha1():
return SHA1()
return SHA1
@monitor_bp.route("/exception")