Commit 2853458f authored by Zixian Cai's avatar Zixian Cai

Trim commit hash

parent 859098bb
...@@ -31,8 +31,7 @@ root = Blueprint('root', __name__, ...@@ -31,8 +31,7 @@ root = Blueprint('root', __name__,
@root.route("/visualize_commit", methods=["POST"]) @root.route("/visualize_commit", methods=["POST"])
def visualize_commit(): def visualize_commit():
repo, host = settings.WEB_POI_REPO, settings.WEB_POI_HOST repo, host = settings.WEB_POI_REPO, settings.WEB_POI_HOST
logfile = storage.load(repo, host, request.form.get("commit")) result = storage.load(repo, host, request.form.get("commit")[:7])
result = json.loads(
group_stats_result(result) group_stats_result(result)
return render_template("visualize.html", result=result) return render_template("visualize.html", result=result)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment