Better account-based wait status
This commit is contained in:
1 parent
10badb282c
commit
33567db5a3
14 files changed
+183
-57
No files matched your search
@@ -98,6 +98,7 @@ class Task:
|
||||
until: Optional[datetime] # for Wait / Limit reset: when the wait ends (ended)
|
||||
notes: str
|
||||
notes_lines: int
|
||||
overrides_wait: bool # its account waits, but this task (set to Testing / Prompt) ignores it
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@@ -123,6 +124,7 @@ class _TaskInfo(ctypes.Structure):
|
||||
("until", ctypes.c_int64),
|
||||
("notes", ctypes.c_char_p),
|
||||
("notes_lines", ctypes.c_int),
|
||||
("overrides_wait", ctypes.c_int),
|
||||
]
|
||||
|
||||
|
||||
@@ -400,6 +402,7 @@ class Database:
|
||||
until=_when(info.until),
|
||||
notes=_dec(info.notes),
|
||||
notes_lines=info.notes_lines,
|
||||
overrides_wait=bool(info.overrides_wait),
|
||||
))
|
||||
return result
|
||||
finally:
|
||||
|
||||
Reference in new issue
Block a user