QingdaoU / OnlineJudge

Open source online judge based on Vue, Django and Docker. | 青岛大学开源 Online Judge | QQ群 496710125 | admin@qduoj.com
http://opensource.qduoj.com/
MIT License
5.93k stars 1.46k forks source link

invalid literal for int() with base 10: '1.000' #404

Closed itmir913 closed 2 years ago

itmir913 commented 2 years ago

Hello. I tried to import problems fps data.

But, Some Error occurs. this error is : invalid literal for int() with base 10: '1.000'

In fps.xml, <![CDATA[1.000]]> This part is the cause of the error.

I editted '1.000' to '1', and Success.

However, Shouldn't this error be resolved for someone else?

Thanks!

Attach log and example files : issues.zip

zhblue commented 2 years ago

这是因为你从新版hustoj导出的文件带有小数,我把hustoj那边打了个补丁,你可以升级一下,这样如果导出的时候发现是整数秒,就不按小数形式导出,可以兼容老版本。

zhblue commented 2 years ago

I patched hustoj for backwards compatibility, update it and export again ,it will use integer as long as it is possible.