GitLab will be upgraded to the 12.10.14-ce.0 on 28 Sept 2020 at 2.00pm (AEDT) to 2.30pm (AEDT). During the update, GitLab and Mattermost services will not be available. If you have any concerns with this, please talk to us at N110 (b) CSIT building.

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

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(logfile.read())
result = storage.load(repo, host, request.form.get("commit")[:7])
group_stats_result(result)
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