修复页面小问题
This commit is contained in:
@@ -56,7 +56,7 @@
|
|||||||
{{ request.user.username }}
|
{{ request.user.username }}
|
||||||
<span class="caret"></span></a>
|
<span class="caret"></span></a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="/submission/">我的提交</a></li>
|
<li><a href="/submissions/">我的提交</a></li>
|
||||||
<li><a href="#">我的资料</a></li>
|
<li><a href="#">我的资料</a></li>
|
||||||
<li role="separator" class="divider"></li>
|
<li role="separator" class="divider"></li>
|
||||||
<li><a href="/logout/">退出</a></li>
|
<li><a href="/logout/">退出</a></li>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
def get_problem_accepted_radio(problem):
|
def get_problem_accepted_radio(problem):
|
||||||
if problem.total_submit_number:
|
if problem.total_submit_number:
|
||||||
return str(int((problem.total_accepted_number * 100) / problem.total_submit_number)) \
|
return str(int((problem.total_accepted_number * 100) / problem.total_submit_number)) \
|
||||||
+ "% (" + str(problem.total_accepted_number) + "/" + str(problem.total_submit_number) + ")"
|
+ "% (" + str(problem.total_accepted_number) + " / " + str(problem.total_submit_number) + ")"
|
||||||
return "0%"
|
return "0%"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user