Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeLimit field type error in DataTransferObject/Shadowing /ProblemEvent.php #2601

Closed
Dup4 opened this issue Jun 16, 2024 · 0 comments · Fixed by #2602
Closed

timeLimit field type error in DataTransferObject/Shadowing /ProblemEvent.php #2601

Dup4 opened this issue Jun 16, 2024 · 0 comments · Fixed by #2602

Comments

@Dup4
Copy link
Contributor

Dup4 commented Jun 16, 2024

Description of the problem

I'm using DOMjudge8.3.0 to shadow another DOMjudge8.3.0 instance.

f9b5dbd567f3cb4333994b0dd9ad8d03

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.

https://ccs-specs.icpc.io/2022-07/contest_api#problems

image

And inside ccs-spec, it can indeed be a float type

in DOMjudge's code, it is of type int, but when I change it to float, the shadow works fine.

Your environment

  • DOMjudge: 8.3.0
  • OS: Ubuntu22.04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant