Skip to content

Commit

Permalink
馃捇 Teacher1 as super teacher in dev db (#5619)
Browse files Browse the repository at this point in the history
**How to test**
- Login as teacher1 and see if they are a super teacher
  • Loading branch information
Annelein committed Jun 19, 2024
1 parent dd65e32 commit 5ea8667
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion data-for-testing.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@
"other_text"
],
"epoch": 1,
"program_count": 2
"program_count": 2,
"is_super_teacher": 1
},
{
"username": "teacher2",
Expand Down
3 changes: 2 additions & 1 deletion website/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def only_in_dev(x):
'classes': Optional(SetOf(str)),
'teacher': Optional(str),
'pair_with_teacher': Optional(int),
'teacher_request': Optional(bool)
'teacher_request': Optional(bool),
'is_super_teacher': Optional(int)
}),
indexes=[
dynamo.Index('email'),
Expand Down

0 comments on commit 5ea8667

Please sign in to comment.