Closed Dup4 closed 3 months ago
I'm using DOMjudge8.3.0 to shadow another DOMjudge8.3.0 instance.
The above error was reported.
{"token":"1139","id":"xxx","type":"problems","data":{"ordinal":0,"id":"xxx","short_name":"A","rgb":"#000000","color":"black","label":"A","time_limit":1.0,"statement":[],"externalid":"xxx","name":"xxx","test_data_count":27},"time":"2024-06-15T21:24:31.902+08:00"}
I checked the event that caused the error, and I can see that the time_limit field in it is indeed of type float.
time_limit
https://ccs-specs.icpc.io/2022-07/contest_api#problems
And inside ccs-spec, it can indeed be a float type
https://github.com/DOMjudge/domjudge/blob/3002fb3d6cf22be7d5037075c340100800515a0b/webapp/src/DataTransferObject/Shadowing/ProblemEvent.php#L10
in DOMjudge's code, it is of type int, but when I change it to float, the shadow works fine.
int
float
Description of the problem
I'm using DOMjudge8.3.0 to shadow another DOMjudge8.3.0 instance.
The above error was reported.
I checked the event that caused the error, and I can see that the
time_limit
field in it is indeed of type float.https://ccs-specs.icpc.io/2022-07/contest_api#problems
And inside ccs-spec, it can indeed be a float type
https://github.com/DOMjudge/domjudge/blob/3002fb3d6cf22be7d5037075c340100800515a0b/webapp/src/DataTransferObject/Shadowing/ProblemEvent.php#L10
in DOMjudge's code, it is of type
int
, but when I change it tofloat
, the shadow works fine.Your environment