Trying Fix : Duplicated User had shown at Lottery finished

This commit is contained in:
Jerry Yan 2019-02-11 13:18:56 +08:00
parent 8a61170fbf
commit ed718fa438
2 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,4 @@
# coding=utf-8
import requests
import time
from .LuckyUser import LuckyUser
@ -56,6 +57,8 @@ class Lottery:
if self.isFinished:
for i in d["lottery_info"]["lucky_users"]:
self.luckyUsers.append(LuckyUser(i))
else:
self.luckyUsers = []
def __str__(self):
if self.isFinished:

1
api.py
View File

@ -1,3 +1,4 @@
# coding=utf-8
import json
import sys