修改rank 页面的bug(对于没有有效时间的用户时间格式转换失败),添加mq对first_achieved的支持

This commit is contained in:
sxw@401
2015-09-14 20:51:48 +08:00
parent 3e583611e3
commit b4bdf7a669
2 changed files with 8 additions and 1 deletions

View File

@@ -393,6 +393,8 @@ def _cmp(x, y):
def get_the_time_format(seconds):
if not seconds:
return ""
result = str(seconds % 60)
if seconds % 60 < 10:
result = "0" + result