[minor] [fix] use --no-color in latest updates build
diff --git a/home/page/latest_updates/latest_updates.py b/home/page/latest_updates/latest_updates.py
index 697f6c4..4cd25b2 100644
--- a/home/page/latest_updates/latest_updates.py
+++ b/home/page/latest_updates/latest_updates.py
@@ -19,6 +19,7 @@
last_commit["author"] = l[8:-1]
if l.startswith(" "):
last_commit["message"] = l[4:-1]
+
if l.startswith("commit"):
last_commit = {
"repo": repo,
@@ -29,12 +30,12 @@
os.chdir("lib")
logs = []
out_lib = tempfile.TemporaryFile()
- subprocess.call("git --no-pager log -n 200", shell=True, stdout=out_lib)
+ subprocess.call("git --no-pager log -n 200 --no-color", shell=True, stdout=out_lib)
add_to_logs(out_lib, "lib")
os.chdir("../app")
out_app = tempfile.TemporaryFile()
- subprocess.call("git --no-pager log -n 200", shell=True, stdout=out_app)
+ subprocess.call("git --no-pager log -n 200 --no-color", shell=True, stdout=out_app)
add_to_logs(out_app, "app")
logs.sort(key=lambda a: a["datetime"], reverse=True)