add current git commit to summary.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import subprocess
|
||||
import importlib
|
||||
|
||||
from environs import Env # type: ignore
|
||||
@@ -27,3 +28,8 @@ DEFAULT_WALLET_NAME = env.str("LNBITS_DEFAULT_WALLET_NAME", default="LNbits wall
|
||||
PREFER_SECURE_URLS = env.bool("LNBITS_FORCE_HTTPS", default=True)
|
||||
|
||||
SERVICE_FEE = env.float("LNBITS_SERVICE_FEE", default=0.0)
|
||||
|
||||
try:
|
||||
LNBITS_COMMIT = subprocess.check_output(["git", "-C", LNBITS_PATH, "rev-parse", "HEAD"]).strip().decode("ascii")
|
||||
except:
|
||||
LNBITS_COMMIT = "unknown"
|
||||
|
||||
Reference in New Issue
Block a user