比赛列表中的问题添加到【问题列表】后,删除后不能再次添加。
After a problem in the competition list is added to the problem list, and then deleted from the problem list, there is a problem. After deleting it, if you try to add this problem to the problem list again, you will find that it is not possible, and it is already in the list and cannot be added. Then I checked the database and found that there is a field called is_public in the problem table, which is of type bool. By default, the value of this field in the competition list is false. After adding the problem to the problem list, you can see that the value of the is_public field for this problem in the competition list has changed to true. However, after deleting the problem that has just been added to the problem list, the original value that has already changed to true will not be changed. Therefore, it cannot be added. I changed the value of the is_public field to false directly from the database, and then I could continue to add it.
内容来源: QingdaoU/OnlineJudge