Refactors Individual class for parser access
Simplifies Individual class initialization by directly passing the parser instance instead of the GedcomParser object. This change streamlines the code and avoids unnecessary object attribute access. Also, it ensures name formatting preserves the original capitalization.
This commit is contained in:
5 files changed
+72
-83
No files matched your search
+1
-1
@@ -149,7 +149,7 @@ def convert_gedcom_to_markdown(
|
||||
return 1
|
||||
|
||||
# Wrap individuals in our data model
|
||||
individuals = [Individual(elem, parser) for elem in individual_elements]
|
||||
individuals = [Individual(elem, parser.parser) for elem in individual_elements]
|
||||
|
||||
# Generate markdown notes
|
||||
logger.info(f"Generating markdown notes in: {people_dir}")
|
||||
|
||||
Reference in new issue
Block a user