改善代码兼容性

This commit is contained in:
2019-04-07 16:01:27 +08:00
committed by JerryYan
parent 00190468a8
commit 5fa4ee929e
8 changed files with 56 additions and 39 deletions

View File

@ -5,14 +5,14 @@ from .LuckyUser import LuckyUser
class Lottery:
ID: int = 0
ID = 0
isActive = False
content = ""
isFinished = False
luckyUsers = []
joinedUserCount = 0
prizeName = ""
finish:int = 0
finish = 0
def __init__(self, json=None):
if json: