Skip to content

Commit e9344b9

Browse files
author
Alexis
committed
FIX: public/get_public_related_articles API resource
1 parent 42acb46 commit e9344b9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [1.13.6] - 2022-10-12
5+
6+
### Fixed
7+
8+
- public/get_public_related_articles API resource
9+
410
## [1.13.5] - 2022-10-11
511

612
### Fixed

oxe-api/resource/public/get_public_related_articles.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def get(self, id_, **kwargs):
7777
entity_tags = self.db.get(self.db.tables["ArticleEntityTag"], {"article_id": article_ids})
7878

7979
for a in data:
80-
a["taxonomy_tags"] = [t.taxonomy_value for t in taxonomy_tags if t.article == a["id"]]
81-
a["entity_tags"] = [t.entity for t in entity_tags if t.article == a["id"]]
80+
a["taxonomy_tags"] = [t.taxonomy_value_id for t in taxonomy_tags if t.article_id == a["id"]]
81+
a["entity_tags"] = [t.entity_id for t in entity_tags if t.article_id == a["id"]]
8282

8383
return build_no_cors_response(data)

0 commit comments

Comments
 (0)