Fix #2276#2289
Conversation
Codecov ReportBase: 55.36% // Head: 55.34% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## dev #2289 +/- ##
==========================================
- Coverage 55.36% 55.34% -0.02%
==========================================
Files 109 109
Lines 8654 8638 -16
==========================================
- Hits 4791 4781 -10
+ Misses 3863 3857 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
atalyaalon
left a comment
There was a problem hiding this comment.
widget generation fails - for example try querying locally
localhost:8080/api/infographics-data?news_flash_id=16577&years_ago=5&lang=he
anyway | Traceback (most recent call last):
anyway | File "/anyway/anyway/widgets/widget.py", line 92, in generate_widget_data
anyway | w.generate_items()
anyway | File "/anyway/anyway/widgets/suburban_widgets/killed_and_injured_count_per_age_group_stacked_widget.py", line 30, in generate_items
anyway | raw_data = KilledAndInjuredCountPerAgeGroupWidgetUtils.filter_and_group_injured_count_per_age_group(
anyway | File "/anyway/anyway/widgets/suburban_widgets/killed_and_injured_count_per_age_group_widget_utils.py", line 41, in filter_and_group_injured_count_per_age_group
anyway | dict_grouped = KilledAndInjuredCountPerAgeGroupWidgetUtils.parse_query_data(query)
anyway | File "/anyway/anyway/widgets/suburban_widgets/killed_and_injured_count_per_age_group_widget_utils.py", line 71, in parse_query_data
anyway | dict_grouped[group_name][row.injury_severity] += row.count
anyway | KeyError: '0-5'
| else: | ||
| age_list.append(f"{item_min_range:02}-{item_max_range:02}") | ||
|
|
||
| return age_list |
There was a problem hiding this comment.
For some reason there's no "Unknown" here. I did not change that.
f3afb81 to
6a6904f
Compare
Also