Skip to content

Commit f809d78

Browse files
committed
Fix TypeError of /api/v1/search/, Sentry GO-API-36R
1 parent d7aae8c commit f809d78

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77
## Unreleased
8+
- Fix TypeError of /api/v1/search/
9+
- Update Molnix alert status even when no event
10+
- NSIA, ESF, CBF changes in ingest_ns_initiatives
811

912
## 1.1.504
1013

api/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def get(self, request):
447447
"score": data.score,
448448
"countries": [{"id": id, "name": name} for id, name in zip(data.countries_id, data.countries)],
449449
"severity_level_display": data.crisis_categorization,
450-
"appeals": [{"id": id, "atype": atype} for id, atype in zip(data.appeals_id, data.appeals_type)],
450+
"appeals": [{"id": id, "atype": atype} for id, atype in zip(data.appeals_id or [], data.appeals_type or [])],
451451
"severity_level": data.severity_level,
452452
}
453453
for data in emergency_response[:50]

0 commit comments

Comments
 (0)