From c603c41e006cbaea5ba7ee51bb62b8cff4c3ebdf Mon Sep 17 00:00:00 2001 From: Masco Skray Date: Fri, 14 Jun 2019 23:41:40 +0800 Subject: [PATCH] style(web): disable hack by default Users rarely use hack, but it is enabled by default. They need to disable it manually, and there are also many people do not now why should disable it. Make the hack function disabled when creating a new problem. --- install/bundle/app_uoj233.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/bundle/app_uoj233.sql b/install/bundle/app_uoj233.sql index ccc4adb..13186ab 100644 --- a/install/bundle/app_uoj233.sql +++ b/install/bundle/app_uoj233.sql @@ -256,7 +256,7 @@ CREATE TABLE IF NOT EXISTS `problems` ( `title` text NOT NULL, `is_hidden` tinyint(1) NOT NULL DEFAULT '0', `submission_requirement` text, - `hackable` tinyint(1) NOT NULL DEFAULT '1', + `hackable` tinyint(1) NOT NULL DEFAULT '0', `extra_config` varchar(500) NOT NULL DEFAULT '{"view_content_type":"ALL","view_details_type":"ALL"}', `zan` int(11) NOT NULL, `ac_num` int(11) NOT NULL DEFAULT '0',