remove lambda function from config.py
This commit is contained in:
parent
e2e9cc6b5d
commit
d026c596ac
|
@ -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__)))
|
||||
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue