corrected defines

parent 6166ca48
module.exports.OBJECT_STATUS = {
ARCHIVED: 0,
REMOVED: 0, // can be restored by teacher
ACTIVE: 1,
DELETED: 2,
DELETED: 2, //can be watched and restore by admin
LOCKED: 3 //can not be edited
};
module.exports.COURSE_TYPES = {
ROOT: 'root',
INTERMEDIATE: 'intermediate',
THEME: 'theme'
};
module.exports.TASK_TYPES = {
TESTER: 'tester',
TESTING: 'testing'
};
module.exports.TASK_DIFFICULTY = {
SIMPLE: 'simple',
USUAL: 'usual',
HARD: 'hard'
};
module.exports.CONTEST_TYPES = {
REGULAR: 'regular',
OPTIONAL: 'optional',
EXAM: 'exam'
};
module.exports.GROUP_TYPES = {
COMMON: "common",
VK: "vk"
};
module.exports.TESTING_TYPE = {
SINGLE: 0,
MULTIPLE: 1
MULTIPLE: 1,
TEXT: 2
};
module.exports.DISTRIBUTIONS = {
......@@ -33,6 +58,12 @@ module.exports.SOLUTION_STATUS = {
NOT_TESTED: 'not_tested'
};
module.exports.SAMPLE_STATUS = {
NOT_PASSED: 'not_passed',
TESTING: 'testing',
PASSED: 'passed'
};
module.exports.FILE_TYPE = {
RAW : 'raw',
ZIP : 'zip',
......@@ -41,16 +72,16 @@ module.exports.FILE_TYPE = {
};
module.exports.TESTER_TYPE =
{
INT_COMPARE: "int_compare",
FLOAT_COMPARE: "float_compare",
NUMBER_COMPARE: "number_compare",
TEXT_COMPARE: "text_compare",
BYTE_COMPARE: "byte_compare",
CUSTOM: "custom",
EXTERNAL: "external",
NOT_TEST: "not_test"
};
{
INT_COMPARE: "int_compare",
FLOAT_COMPARE: "float_compare",
NUMBER_COMPARE: "number_compare",
TEXT_COMPARE: "text_compare",
BYTE_COMPARE: "byte_compare",
CUSTOM: "custom",
EXTERNAL: "external",
NOT_TEST: "not_test"
};
module.exports.TEST_RESULTS = {
UNKNOWN_COMPILER: 0,
......@@ -77,14 +108,18 @@ module.exports.TEST_RESULTS = {
};
module.exports.TEST_TYPE =
{
PROGRAM: "program",
FILE: "file",
PROJECT: "project"
};
{
PROGRAM: "program",
FILE: "file",
PROJECT: "project"
};
module.exports.IO_TYPE =
{
INPUT: "input",
OUTPUT: "output"
};
module.exports.KILLING_CODES = {
SELF_KILL : 134
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment