Skip to content

Commit

Permalink
support group merge checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
blackav committed Nov 2, 2024
1 parent f785c8e commit 378ede7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/super_html_6.c
Original file line number Diff line number Diff line change
Expand Up @@ -4483,6 +4483,7 @@ super_serve_op_IMPORT_FROM_POLYGON_ACTION(
int verbose_flag = 0;
int ignore_main_solution_flag = 0;
int enable_rss_limit_flag = 0;
int enable_group_merge_flag = 0;

if (!ss->edited_cnts || !ss->global) {
FAIL(SSERV_ERR_NO_EDITED_CNTS);
Expand Down Expand Up @@ -4640,6 +4641,7 @@ super_serve_op_IMPORT_FROM_POLYGON_ACTION(
if (hr_cgi_param(phr, "binary_input", &s) > 0) binary_input_flag = 1;
if (hr_cgi_param(phr, "enable_iframe_statement", &s) > 0) enable_iframe_statement_flag = 1;
if (hr_cgi_param(phr, "enable_rss_limit", &s) > 0) enable_rss_limit_flag = 1;
if (hr_cgi_param(phr, "enable_group_merge", &s) > 0) enable_group_merge_flag = 1;

if (hr_cgi_param(phr, "language_priority", &s) > 0 && *s) {
if (!strcmp(s, "ru,en")
Expand Down Expand Up @@ -4732,6 +4734,7 @@ super_serve_op_IMPORT_FROM_POLYGON_ACTION(
pp->binary_input = binary_input_flag;
pp->enable_iframe_statement = enable_iframe_statement_flag;
pp->enable_rss_limit = enable_rss_limit_flag;
pp->enable_group_merge = enable_group_merge_flag;
pp->verbose = verbose_flag;
pp->create_mode = 1;
if (upload_mode <= 0) {
Expand Down Expand Up @@ -5318,6 +5321,7 @@ super_serve_op_UPDATE_FROM_POLYGON_ACTION(
int binary_input_flag = 0;
int enable_iframe_statement_flag = 0;
int enable_rss_limit_flag = 0;
int enable_group_merge_flag = 0;

if (hr_cgi_param(phr, "verbose", &s) > 0) verbose_flag = 1;

Expand Down Expand Up @@ -5424,7 +5428,8 @@ super_serve_op_UPDATE_FROM_POLYGON_ACTION(
if (hr_cgi_param(phr, "fetch_latest_available", &s) > 0) fetch_latest_available_flag = 1;
if (hr_cgi_param(phr, "binary_input", &s) > 0) binary_input_flag = 1;
if (hr_cgi_param(phr, "enable_iframe_statement", &s) > 0) enable_iframe_statement_flag = 1;
if (hr_cgi_param(phr, "enable_rss_limit_flag", &s) > 0) enable_rss_limit_flag = 1;
if (hr_cgi_param(phr, "enable_rss_limit", &s) > 0) enable_rss_limit_flag = 1;
if (hr_cgi_param(phr, "enable_group_merge", &s) > 0) enable_group_merge_flag = 1;

if ((r = hr_cgi_param(phr, "polygon_url", &s)) < 0) {
fprintf(log_f, "polygon url is invalid\n");
Expand Down Expand Up @@ -5511,6 +5516,7 @@ super_serve_op_UPDATE_FROM_POLYGON_ACTION(
pp->binary_input = binary_input_flag;
pp->enable_iframe_statement = enable_iframe_statement_flag;
pp->enable_rss_limit = enable_rss_limit_flag;
pp->enable_group_merge = enable_group_merge_flag;
XCALLOC(pp->id, polygon_count + 1);
for (int prob_id = 1, ind = 0; prob_id < ss->prob_a; ++prob_id) {
const struct section_problem_data *prob = ss->probs[prob_id];
Expand Down

0 comments on commit 378ede7

Please sign in to comment.