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

Trim commit hash

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