-
Notifications
You must be signed in to change notification settings - Fork 0
/
encyclopedia.py
33 lines (32 loc) · 2.13 KB
/
encyclopedia.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
from app import app, db
from app.models import (Student,
StudentAnswer,
BugReport,
UserGradeInfo,
UserSectionStatus)
from app.books import Algebra2, SevenTest, CustomAssessment, make_assess, custom_quiz
from app.books import MultipleProblemFragment as MPF
@app.shell_context_processor
def make_shell_context():
# emily = Student.query.filter_by(username='emilymasten').first()
# section_status = UserSectionStatus.query.filter_by(user_id=emily.id, section_name='solveforx').first()
return {'db': db,
'Student': Student,
'StudentAnswer': StudentAnswer,
'BugReport': BugReport,
'UserGradeInfo': UserGradeInfo,
'Algebra2': Algebra2,
'SevenTest': SevenTest,
'MPF': MPF,
'UserSectionStatus': UserSectionStatus,
# 'early' : Algebra2.get_sections_by_string('3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, 3.14, 3.15, 3.16, 3.17, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9'),
# 'new' : Algebra2.get_sections_by_string('5.1, 5.2, 5.3, 5.4, 5.5'),
# 'final': Algebra2.get_sections_by_string('2.5, 2.12, 2.16, 3.2, 3.8, 3.13, 3.14, 3.17, 4.2, 4.3, 4.5, 4.6, 4.8, 4.9, 5.1'),
# 'aathan': Algebra2.get_sections_by_string('2.1, 2.3, 2.5, 2.12, 2.13, 2.16, 3.2, 3.3, 3.8, 3.13, 3.14, 3.15, 3.17, 4.2, 4.3'),
# 'narrow': Algebra2.get_sections_by_string('2.5, 2.6, 2.10, 2.12, 2.13, 2.15, 2.16, 3.2, 3.8, 3.10, 3.11, 3.13, 3.14, 3.16, 3.17, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9, 5.1'),
# 'sem1': Algebra2.get_sections_by_string('1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 2.10, 2.11, 2.12, 2.13, 2.14, 2.15, 2.16, 3.1, 3.2, 3.3, 3.4, 3.5'),
# 'sem2': Algebra2.get_sections_by_string('3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, 3.14, 3.15, 3.16, 3.17, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9, 5.1, 5.2, 5.3, 5.4, 5.5'),
'CustomAssessment' : CustomAssessment,
'make_assess': make_assess,
'custom_quiz': custom_quiz
}