Skip to content

Instantly share code, notes, and snippets.

@canismarko
Created December 28, 2023 20:01
Show Gist options
  • Save canismarko/40a69b1f2e7d9f74da1cdee6a119e72b to your computer and use it in GitHub Desktop.
Save canismarko/40a69b1f2e7d9f74da1cdee6a119e72b to your computer and use it in GitHub Desktop.
dungeonsheets-PR changes
diff --git a/dungeonsheets/character.py b/dungeonsheets/character.py
index 0e88c81..8c84232 100644
--- a/dungeonsheets/character.py
+++ b/dungeonsheets/character.py
@@ -196,7 +196,7 @@ class Character(Creature):
self.portrait = attrs.pop("portrait", None)
if self.portrait:
self.images = [(self.portrait, 1, 117, 551, 170, 220)] + self.images
- self.source_file_location = attrs.pop("source_file_location")
+ self.source_file_location = attrs.pop("source_file_location", "")
self.images = [
(
Path(path),
diff --git a/dungeonsheets/make_sheets.py b/dungeonsheets/make_sheets.py
index 5673ed0..8c36c03 100644
--- a/dungeonsheets/make_sheets.py
+++ b/dungeonsheets/make_sheets.py
@@ -32,7 +32,7 @@ from dungeonsheets.fill_pdf_template import (
create_personality_pdf_template,
create_spells_pdf_template,
)
-from pdf_image_insert import insert_image_into_pdf
+from dungeonsheets.pdf_image_insert import insert_image_into_pdf
log = logging.getLogger(__name__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment