fix more broken enums
This commit is contained in:
parent
056bf5e7ba
commit
7120c76a47
|
|
@ -1,5 +1,7 @@
|
|||
from enum import IntEnum
|
||||
|
||||
DefaultDbName = 'tt_code_redemption'
|
||||
RedeemErrors = Enum('Success, CodeDoesntExist, CodeIsInactive, CodeAlreadyRedeemed, AwardCouldntBeGiven, TooManyAttempts, SystemUnavailable, ')
|
||||
RedeemErrors = IntEnum('RedeemErrors', ('Success', 'CodeDoesntExist', 'CodeIsInactive', 'CodeAlreadyRedeemed', 'AwardCouldntBeGiven', 'TooManyAttempts', 'SystemUnavailable'))
|
||||
RedeemErrorStrings = {RedeemErrors.Success: 'Success',
|
||||
RedeemErrors.CodeDoesntExist: 'Invalid code',
|
||||
RedeemErrors.CodeIsInactive: 'Code is inactive',
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
GiveAwardErrors = Enum('Success, WrongGender, NotGiftable, FullMailbox, FullAwardMailbox, AlreadyInMailbox, AlreadyInGiftQueue, AlreadyInOrderedQueue, AlreadyInCloset, AlreadyBeingWorn, AlreadyInAwardMailbox, AlreadyInThirtyMinuteQueue, AlreadyInMyPhrases, AlreadyKnowDoodleTraining, AlreadyRented, GenericAlreadyHaveError, UnknownError, UnknownToon, NonToon,')
|
||||
from enum import IntEnum
|
||||
|
||||
GiveAwardErrors = IntEnum('GiveAwardErrors', ('Success', 'WrongGender', 'NotGiftable', 'FullMailbox', 'FullAwardMailbox', 'AlreadyInMailbox', 'AlreadyInGiftQueue', 'AlreadyInOrderedQueue', 'AlreadyInCloset', 'AlreadyBeingWorn', 'AlreadyInAwardMailbox', 'AlreadyInThirtyMinuteQueue', 'AlreadyInMyPhrases', 'AlreadyKnowDoodleTraining', 'AlreadyRented', 'GenericAlreadyHaveError', 'UnknownError', 'UnknownToon', 'NonToon'))
|
||||
GiveAwardErrorStrings = {GiveAwardErrors.Success: 'success',
|
||||
GiveAwardErrors.WrongGender: 'wrong gender',
|
||||
GiveAwardErrors.NotGiftable: 'item is not giftable',
|
||||
|
|
|
|||
Loading…
Reference in New Issue