Skip to content

Commit

Permalink
Add teacher to customize class class_info (hedyorg#3308)
Browse files Browse the repository at this point in the history
Co-authored-by: Felienne Hermans <[email protected]>
  • Loading branch information
TiBiBa and Felienne authored Sep 25, 2022
1 parent 9eaff14 commit fc6d019
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/teacher.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ def get_class_info(user, class_id):
customizations = DATABASE.get_class_customizations(class_id)

return render_template('customize-class.html', page_title=gettext('title_customize-class'),
class_info={'name': Class['name'], 'id': Class['id']}, max_level=hedy.HEDY_MAX_LEVEL,
adventures=adventures, teacher_adventures=teacher_adventures,
customizations=customizations, current_page='my-profile')
class_info={'name': Class['name'], 'id': Class['id'], 'teacher': Class['teacher']},
max_level=hedy.HEDY_MAX_LEVEL, adventures=adventures, customizations=customizations,
teacher_adventures=teacher_adventures, current_page='my-profile')

@app.route('/for-teachers/customize-class/<class_id>', methods=['DELETE'])
@requires_login
Expand Down

0 comments on commit fc6d019

Please sign in to comment.