Skip to content

Commit 05c1c0a

Browse files
authored
Merge pull request #183 from icpc/current-judgement
Add `current` to `/judgements`
2 parents 908ab2c + dec401d commit 05c1c0a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Contest_API.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ Data is immutable though: only inserts, no updates or deletes of
531531
objects. It does have associated timestamp/contest time property.
532532
Inserts and deletes are notified via the event feed. **Note**:
533533
judgements are the exception to immutability in a weak sense: they get
534-
updated once with the final verdict.
534+
updated once with the final verdict, and the value for `current` may change.
535535

536536
Aggregate data: Only `GET` makes sense. These are not included in the
537537
event feed, also note that these should not be considered proper REST
@@ -1715,6 +1715,7 @@ Properties of judgement objects:
17151715
| submission\_id | ID | Identifier of the [submission](#submissions) judged.
17161716
| judgement\_type\_id | ID ? | The [verdict](#judgement-types) of this judgement. Required iff judgement has completed.
17171717
| score | number | Score for this judgement. Required iff contest:scoreboard\_type is `score`.
1718+
| current | boolean ? | `true` if this is the current judgement. Defaults to `true`. At any time, there must be at most one judgement per submission for which this `true` or unset (and thus defaulting to `true`).
17181719
| start\_time | TIME | Absolute time when judgement started.
17191720
| start\_contest\_time | RELTIME | Contest relative time when judgement started.
17201721
| end\_time | TIME ? | Absolute time when judgement completed. Required iff judgement\_type\_id is present.

readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ This is the draft of some future version of the CCS specification.
2828

2929
These are the main changes made since the `2023-06` version:
3030

31-
- Changed type of `penalty_time` in contest enpoint from `integer` to `RELTIME`.
31+
- Changed type of `penalty_time` in contest endpoint from `integer` to `RELTIME`.
3232
- Changed type of time related properties in scoreboard endpoint from `integer` to `RELTIME`.
33+
- Added `current` to judgements endpoint.
3334
- Added `country_subdivision` and `country_subdivision_flag` to organizations endpoint.
3435

3536
## References

0 commit comments

Comments
 (0)