Skip to content

Commit

Permalink
Fix error while displaying suggestion threads on learner dashboard pa…
Browse files Browse the repository at this point in the history
…ge (oppia#5965)

* fix error on learner dashboard page

* fix style
  • Loading branch information
nithusha21 authored Dec 10, 2018
1 parent b67a19d commit e5e1a02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/controllers/learner_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def get(self, thread_id):

message_summary_list = []
suggestion = suggestion_services.get_suggestion_by_id(thread_id)
suggestion_thread = feedback_services.get_thread(thread_id)

exploration_id = feedback_services.get_exp_id_from_thread_id(thread_id)
if suggestion:
Expand All @@ -172,7 +173,7 @@ def get(self, thread_id):
suggestion_summary = {
'suggestion_html': suggestion.change.new_value['html'],
'current_content_html': current_content_html,
'description': suggestion.description,
'description': suggestion_thread.subject,
'author_username': authors_settings[0].username,
'author_picture_data_url': (
authors_settings[0].profile_picture_data_url)
Expand Down

0 comments on commit e5e1a02

Please sign in to comment.