Skip to content

Commit

Permalink
add '_type' key in the response (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
devketanpro authored and petrjasek committed Feb 27, 2023
1 parent 5fb104f commit f3e94ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/belga/search_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ def format_list_item(self, data):
guid = "%s%d" % (self.GUID_PREFIX, data["newsObjectId"])
formatted_data = {
"type": self.get_type(data.get("assetType", "text")),
"_type": "externalsource",
"mimetype": f"application/superdesk.item.{self.get_type(data.get('assetType', 'text'))}",
"pubstatus": "usable",
"_id": guid,
Expand Down

0 comments on commit f3e94ce

Please sign in to comment.