diff options
-rw-r--r-- | src/ee/bom.py (renamed from src/ee/bom/__init__.py) | 4 | ||||
-rw-r--r-- | src/ee/project/report.py | 4 | ||||
-rw-r--r-- | src/ee/templates/bom.rst.j2 (renamed from src/ee/bom/templates/bom.rst.j2) | 0 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/ee/bom/__init__.py b/src/ee/bom.py index 11c2fce..f8cca71 100644 --- a/src/ee/bom/__init__.py +++ b/src/ee/bom.py @@ -27,7 +27,7 @@ def make_report(out_file, unresolved_parts, bom_parts: ObjDb[BomPart], supplier_ "supplier_parts": supplier_parts, "unresolved_parts": unresolved_parts, } - report.save_report("ee.bom", "bom.rst.j2", out_file, **kwargs) + report.save_report("ee", "bom.rst.j2", out_file, **kwargs) def default_strategy(x): @@ -35,7 +35,7 @@ def default_strategy(x): def create_bom(project: Project, schematic_path: Path, out_path: Path, part_dbs: List[Path], - fail_on_missing_parts: bool, strategy_name: Optional[str]): + fail_on_missing_parts: bool, strategy_name: Optional[str]): strategy = default_strategy if strategy_name: strategy = pydoc.locate(strategy_name) diff --git a/src/ee/project/report.py b/src/ee/project/report.py index 26cdaa3..1e7f6f4 100644 --- a/src/ee/project/report.py +++ b/src/ee/project/report.py @@ -9,8 +9,8 @@ from ee.xml import types class Message(object): - def __init__(self, object: Optional[str] = None, text: Optional[str] = None): - self.object = object + def __init__(self, obj: Optional[str] = None, text: Optional[str] = None): + self.object = obj self.text = text diff --git a/src/ee/bom/templates/bom.rst.j2 b/src/ee/templates/bom.rst.j2 index 3463d90..3463d90 100644 --- a/src/ee/bom/templates/bom.rst.j2 +++ b/src/ee/templates/bom.rst.j2 |