Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/log_analyser/objects/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,14 @@ def find_character_name_in_english(self, character_name):
with open(file_path, 'r', encoding='utf-8') as file:
data = json.load(file)
if character_name in data:
return data[character_name] # Retourne la valeur associée au nom du personnage
return data[character_name]

with open("log_analyser/roles/roles.json", 'r', encoding='utf-8') as file:
data = json.load(file)
for key, value in data.items():
if character_name in value:
return character_name


print("Character name not found in english : ", character_name)
return ""