diff --git a/app/config.py b/app/config.py index 26a110f8..77dcb641 100644 --- a/app/config.py +++ b/app/config.py @@ -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__))) diff --git a/app/monitor/views.py b/app/monitor/views.py index 659c3d6f..d23fde99 100644 --- a/app/monitor/views.py +++ b/app/monitor/views.py @@ -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")