Skip to content

Commit 64b2317

Browse files
committed
disable_autoupdate_standings attribute added
1 parent 81db712 commit 64b2317

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

include/ejudge/ejudge_cfg.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#ifndef __EJUDGE_CFG_H__
44
#define __EJUDGE_CFG_H__ 1
55

6-
/* Copyright (C) 2002-2022 Alexander Chernov <[email protected]> */
6+
/* Copyright (C) 2002-2023 Alexander Chernov <[email protected]> */
77

88
/*
99
* This program is free software; you can redistribute it and/or modify
@@ -77,6 +77,7 @@ struct ejudge_cfg
7777
int force_container;
7878
int enable_compile_container;
7979
int enable_oauth;
80+
int disable_autoupdate_standings;
8081

8182
// WebSocket port number
8283
int contests_ws_port;

lib/ejudge_cfg.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- mode: c -*- */
22

3-
/* Copyright (C) 2002-2022 Alexander Chernov <[email protected]> */
3+
/* Copyright (C) 2002-2023 Alexander Chernov <[email protected]> */
44

55
/*
66
* This program is free software; you can redistribute it and/or modify
@@ -144,6 +144,7 @@ enum
144144
AT_ENABLE_COMPILE_CONTAINER,
145145
AT_COMPILER,
146146
AT_OPTION,
147+
AT_DISABLE_AUTOUPDATE_STANDINDGS,
147148

148149
AT__BARRIER,
149150
AT__DEFAULT,
@@ -252,6 +253,7 @@ static char const * const attr_map[] =
252253
"enable_compile_container",
253254
"compiler",
254255
"option",
256+
"disable_autoupdate_standings",
255257
0,
256258
"_default",
257259

@@ -710,6 +712,9 @@ ejudge_cfg_do_parse(char const *path, FILE *in_file, int no_system_lookup)
710712
case AT_ENABLE_COMPILE_CONTAINER:
711713
if (xml_attr_bool(a, &cfg->enable_compile_container) < 0) goto failed;
712714
break;
715+
case AT_DISABLE_AUTOUPDATE_STANDINDGS:
716+
if (xml_attr_bool(a, &cfg->disable_autoupdate_standings) < 0) goto failed;
717+
break;
713718
default:
714719
xml_err_attr_not_allowed(&cfg->b, a);
715720
goto failed;

0 commit comments

Comments
 (0)