-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
69 lines (64 loc) · 1.76 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import datetime
FAKE_LANGUAGES_STATUS = False
MAX_FILE_CONTENT_SIZE = 100 # Megabytes
DATABASE_FOLDER = "databases"
DATABASE_FILENAME = "database"
PROBLEM_TESTCASE_ROOT_STORAGE = "problems"
LANGUAGE_EXECUTOR_ROOT_STORAGE = "languages"
FAKE_LANGUAGES = {
"BRAINFUCK": {
"status": True,
"uptime_since": int(datetime.datetime.now().timestamp()),
"display_name": "Brainfuck"
},
"CPP17": {
"status": True,
"uptime_since": int(datetime.datetime.now().timestamp()),
"display_name": "C++ 17"
},
"CPPTHEMIS": {
"status": True,
"uptime_since": int(datetime.datetime.now().timestamp()),
"display_name": "C++ (Themis)"
},
"CPP17": {
"status": True,
"uptime_since": int(datetime.datetime.now().timestamp()),
"display_name": "C++ 17"
},
"PAS": {
"status": True,
"uptime_since": int(datetime.datetime.now().timestamp()),
"display_name": "Pascal 3.2.2"
},
"PASTHEMIS": {
"status": True,
"uptime_since": int(datetime.datetime.now().timestamp()),
"display_name": "Pascal (Themis)"
},
"JAVA": {
"status": True,
"uptime_since": int(datetime.datetime.now().timestamp()),
"display_name": "Java 19"
},
"C": {
"status": True,
"uptime_since": int(datetime.datetime.now().timestamp()),
"display_name": "C"
},
"C#": {
"status": True,
"uptime_since": int(datetime.datetime.now().timestamp()),
"display_name": "C#"
},
"TEXT": {
"status": True,
"uptime_since": int(datetime.datetime.now().timestamp()),
"display_name": "TEXT"
},
"SCRATCH": {
"status": True,
"uptime_since": int(datetime.datetime.now().timestamp()),
"display_name": "Scratch"
}
} if FAKE_LANGUAGES_STATUS else {}