使用新的生成比赛排名的方式

This commit is contained in:
virusdefender
2015-09-24 21:25:13 +08:00
parent aa0f27fc47
commit 8cd2bdbaf0
6 changed files with 66 additions and 89 deletions

View File

@@ -100,5 +100,5 @@ def paginate(request, query_set, object_serializer):
def rand_str(length=32):
string = hashlib.md5(str(time.time()) + str(random.randrange(1, 9999999900))).hexdigest()
string = hashlib.md5(str(time.time()) + str(random.randrange(1, 987654321234567))).hexdigest()
return string[0:length]