Oops, fix first vs last sha in comparison view

This commit is contained in:
Chase Sterling 2016-07-09 19:21:57 -04:00
父節點 631dc03f38
當前提交 9602dd993d
共有 1 個檔案被更改,包括 1 行新增1 行删除

查看文件

@ -28,7 +28,7 @@ def compare(name, fsha, dots, lsha):
if current_app.config.get('PRIVATE_WIKI') and current_user.is_anonymous(): if current_app.config.get('PRIVATE_WIKI') and current_user.is_anonymous():
return current_app.login_manager.unauthorized() return current_app.login_manager.unauthorized()
diff = g.current_wiki.get_page(name, sha=fsha).compare(lsha) diff = g.current_wiki.get_page(name, sha=lsha).compare(fsha)
return render_template('wiki/compare.html', return render_template('wiki/compare.html',
name=name, diff=diff, old=fsha, new=lsha) name=name, diff=diff, old=fsha, new=lsha)