fixed : get reaction description, desc was moved

This commit is contained in:
Djalim Simaila 2023-02-16 11:02:52 +01:00
parent 54ec5640f1
commit 7cfcf1af2a

View File

@ -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: