SubmissionResult
Outcome of an answer attempt or a local submission guardrail.
Usage
SubmissionResult(
guess,
result,
message,
is_correct,
is_cached,
retry_at=None,
)Attributes
guess: int | str-
The requested answer after stripping surrounding whitespace from strings.
result: SubmissionStatus-
The Advent of Code outcome or the status inferred from guess history.
message: str-
Human-readable text describing the outcome.
is_correct: bool-
True for a correct answer, including a cached correct answer. An already completed part has its own result status.
is_cached: bool-
True when local history supplied the result without a submission.
retry_at: datetime | None- Earliest retry time for a cooldown. Elf estimates 60 seconds when the server does not supply a recognizable duration.
Methods
| Name | Description |
|---|---|
| __repr__() | Show the guess, outcome, cache flag, and retry deadline. |
__repr__()
Show the guess, outcome, cache flag, and retry deadline.
Usage
__repr__()