todo.sr.ht/todosrht/types/ticketstatus.py

24 lines
420 B
Python
Raw Normal View History

2020-01-09 18:19:44 +01:00
from enum import IntFlag, Enum
2017-09-13 14:17:52 +02:00
class TicketStatus(IntFlag):
reported = 0
confirmed = 1
in_progress = 2
pending = 4
resolved = 8
class TicketResolution(IntFlag):
unresolved = 0
fixed = 1
implemented = 2
wont_fix = 4
by_design = 8
invalid = 16
duplicate = 32
2018-11-03 21:30:05 +01:00
not_our_bug = 64
2020-01-09 18:19:44 +01:00
class TicketAuthenticity(Enum):
authentic = 0
unauthenticated = 1
tampered = 2