character name separation and character.json saving, refactor character ID generation to helpers

This commit is contained in:
Xevion
2020-09-14 12:15:08 -05:00
parent 21b471e9d4
commit 1d9d1d27ad
3 changed files with 19 additions and 11 deletions

View File

@@ -50,3 +50,10 @@ def algolia_transform(old_dictionary: dict, key_list: List[Tuple[str, Optional[s
new_dictionary[keyItem[0]] = old_dictionary[keyItem[0]]
return new_dictionary
def is_main_character(name: str) -> bool:
return None
def character_id(name: str) -> str:
return '-'.join(name.split(' ')).lower()