mirror of
https://ghfast.top/https://github.com/discourse/discourse-ai.git
synced 2026-07-16 11:36:23 +08:00
## 🔍 Overview
When exporting an Overall Sentiment report in the admin panel, the export fails with:
```ruby
Job exception: no implicit conversion of Symbol into Integer
```
This was happening because we are passing a single _Hash_ to `report.data` however, exports expect `report.data` to be an _Array of Hashes_. This update fixes this issue by wrapping the data in an array.
|
||
|---|---|---|
| .. | ||
| constants.rb | ||
| emotion_dashboard_report.rb | ||
| emotion_filter_order.rb | ||
| emotions.rb | ||
| entry_point.rb | ||
| post_classification.rb | ||
| sentiment_analysis_report.rb | ||
| sentiment_dashboard_report.rb | ||
| sentiment_site_setting_json_schema.rb | ||