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
6.05k stars 1.47k forks source link

AC 数量问题 #357

Open Leasier opened 3 years ago

Leasier commented 3 years ago

我 AC 了一道题,然后无聊地开始重测,但我惊奇地发现 AC 数从 $1$ 变成了 $2$。请问这个问题可以怎样解决?

rrutwik commented 3 years ago

You need to change "if self.last_result:" to "if self.last_result is not None:"

https://github.com/QingdaoU/OnlineJudge/blob/7134bbd9494afb77164cf1c5f0ef8335b24994cf/judge/dispatcher.py#L196