When making GM session notes as epub, the party character sheets are also included.

This commit is contained in:
Mark Wolfman
2021-07-11 13:07:40 -05:00
parent f020eaccc6
commit e40d6b1a20
4 changed files with 17 additions and 5 deletions
+4
View File
@@ -55,6 +55,10 @@ def read_sheet_file(filename: Union[str, Path]) -> dict:
# Remove imported dungeonsheets modules
char_props.pop("import_homebrew", None)
char_props.pop("mechanics", None)
# Remove private variables (start with a '_')
for attr in list(char_props.keys()):
if attr[0] == "_":
char_props.pop(attr)
return char_props