You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
332 B

from enum import Enum
class Review(Enum):
none = 0
denied = 1
accepted = 2
@classmethod
def parse_string(cls, string):
if string == 'accept' or string == 'accepted':
return cls.accepted
if string == 'deny' or string == 'denied':
return cls.denied
return cls.none