-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.py
158 lines (142 loc) · 3.23 KB
/
config.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
import os
BRANCH_CODES = ['00', '10', '13', '21', '31', '32', '40', '20']
MCA_BRANCH_CODES = ['14', ]
COLLEGE_CODENAMES = {
'027': 'AKGEC',
'029': 'KIET',
'032': 'ABES',
'091': 'JSS',
'143': 'IMS',
'033': 'RKGIT',
'161': 'KEC',
'030': 'IPEC',
'222': 'ITS',
}
BRANCH_NAMES = {
"00": "Civil Engineering",
"10": "Computer Science and Engineering",
"13": "Information Technology",
"20": "Electrical Engineering",
"31": "Electronics and Communication Engineering",
"32": "Electronics and Instrumentation Engineering",
"40": "Mechanical Engineering",
"14": "Master in Computer Applications",
"21": "Electrical & Electronics Engineering",
}
BRANCH_CODENAMES = {
"00": "CE",
"10": "CSE",
"13": "IT",
"20": "EE",
"21": "EN",
"31": "ECE",
"32": "EI",
"40": "ME",
"14": "MCA",
}
URLS = {
1: ("http://results.aktu.ac.in/akturesult/Even2016Resul"
"t/frmbtech2semester_2016safrgh.aspx"),
2: ("http://results.aktu.ac.in/akturesult/Even2016Resul"
"t/frmbtech4semtrererb_2016nrqiop.aspx"),
3: ("http://results.aktu.ac.in/akturesult/Even2016Resul"
"t/frmbtech6semhjjh_2016fbnhvg.aspx"),
4: ("http://results.aktu.ac.in/akturesult/Even2016Resul"
"t/frmBtech78even2016.aspx"),
}
MCA_URLS = {
1: ('http://aktu.ac.in/results/gbturesult_11_12/Odd'
'Semester2016/frmMCA1Sem.aspx'),
2: ('http://aktu.ac.in/results/gbturesult_11_12/Odd'
'Semester2016/frmMCA3Sem.aspx'),
3: ('http://aktu.ac.in/results/gbturesult_11_12/Odd'
'Semester2016/frmMCA5Semome.aspx'),
}
COLLEGE_CODES = ["027", "029", "032", "091", "143", "033", "161", "030",
"222", ]
# total students of all branches of Ajay Kumar Garg Engineering College
MAX_STUDENTS = {
# 1st year
'1': {
"00": 119,
"10": 186,
"13": 123,
"21": 112,
"31": 183,
"32": 31,
"40": 180,
"14": 118,
},
# 2nd year
'2': {
"00": 128,
"10": 204,
"13": 126,
"21": 116,
"31": 174,
"32": 32,
"40": 210,
"14": 113, # assumed data
},
# 3rd year
'3': {
"00": 133,
"10": 193,
"13": 122,
"21": 118,
"31": 187,
"32": 36,
"40": 185,
"14": 135,
},
# 4th year
'4': {
"00": 70,
"10": 209,
"13": 113,
"21": 131,
"31": 197,
"32": 35,
"40": 211
}
}
MAX_MARKS_YEARWISE = {
'1': {
"00": 630,
"10": 630,
"13": 630,
"21": 630,
"31": 630,
"32": 630,
"40": 630
},
'2': {
"00": 620,
"10": 620,
"13": 620,
"21": 620,
"31": 620,
"32": 620,
"40": 620
},
'3': {
"00": 620,
"10": 620,
"13": 620,
"21": 620,
"31": 620,
"32": 620,
"40": 590
}, #620 for all branches and 590 for ME
'4': {
"00": 650,
"10": 600,
"13": 600,
"21": 650,
"31": 650,
"32": 650,
"40": 600
},
}
WTF_CSRF_ENABLED = True
UPLOAD_FOLDER = os.getcwd() + '/Section-Faculty Information'