Skip to content

Commit

Permalink
Fix a couple bugs with organizer view
Browse files Browse the repository at this point in the history
- blank comments should not get bullets
- should not include enrollments for pending classes for workshop aggregations
  • Loading branch information
mehalshah committed Mar 24, 2017
1 parent ac65308 commit a53a80c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ const SurveyResultsHeader = React.createClass({
<b>{question['text']}</b>
{
thisWorkshop[question['key']].map((answer, j) => {
return (
return !!(_.trim(answer)) && (
<li key={j}>
{answer}
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def index
survey_report[:all_workshops_for_course] = aggregate_for_all_workshops[params[:course]]

survey_report[:all_my_workshops_for_course], facilitator_scores = get_score_for_workshops(
::Pd::Workshop.where(course: params[:course], organizer_id: current_user.id), facilitator_breakdown: true
::Pd::Workshop.where(course: params[:course], organizer_id: current_user.id).in_state(::Pd::Workshop::STATE_ENDED), facilitator_breakdown: true
)
survey_report.merge!(facilitator_scores)

Expand Down

0 comments on commit a53a80c

Please sign in to comment.