From 7cfcf1af2ad1b3b9478b65e0b31814f25ffd6afb Mon Sep 17 00:00:00 2001 From: SIMAILA Djalim Date: Thu, 16 Feb 2023 11:02:52 +0100 Subject: [PATCH] fixed : get reaction description, desc was moved --- truthinquiry/ext/database/dbutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/truthinquiry/ext/database/dbutils.py b/truthinquiry/ext/database/dbutils.py index 158360f..8530bbd 100644 --- a/truthinquiry/ext/database/dbutils.py +++ b/truthinquiry/ext/database/dbutils.py @@ -87,7 +87,7 @@ def get_reaction_description(lang, npc_id, trait_id) -> str: :trait_id: the trait associated to the reaction to get the description from :return: the description in the given language """ - desc_lid = db.session.query(Reaction).filter_by(NPC_ID=npc_id,TRAIT_ID=trait_id).one().DESC_LID + desc_lid = db.session.query(Trait).filter_by(TRAIT_ID=trait_id).one().DESC_LID return get_text_from_lid(lang, desc_lid) def get_traits(lang: str) -> list: