fixed : get reaction description, desc was moved
This commit is contained in:
parent
54ec5640f1
commit
7cfcf1af2a
@ -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
|
:trait_id: the trait associated to the reaction to get the description from
|
||||||
:return: the description in the given language
|
: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)
|
return get_text_from_lid(lang, desc_lid)
|
||||||
|
|
||||||
def get_traits(lang: str) -> list:
|
def get_traits(lang: str) -> list:
|
||||||
|
Loading…
Reference in New Issue
Block a user