diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f1087cf..7aff1b3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -69,7 +69,6 @@ jobs: file-description: ${{ env.NAME }} app, created by ${{ env.AUTHOR }}. output-dir: build enable-plugins: pyside6 - include-module: openpyxl - name: Mutate artifact run: mv build/main.app build/${{ env.NAME }}.app @@ -119,7 +118,6 @@ jobs: enable-plugins: pyside6 clang: true static-libpython: yes - include-module: openpyxl - name: Mutate artifact run: mv build/main.dist build/${{ env.NAME }} @@ -168,7 +166,6 @@ jobs: file-description: ${{ env.NAME }} app, created by ${{ env.AUTHOR }}. output-dir: build enable-plugins: pyside6 - include-module: openpyxl - name: Mutate artifact run: mv build/main.dist build/${{ env.NAME }} diff --git a/src/services/email.py b/src/services/email.py index a48da5b..8e05855 100644 --- a/src/services/email.py +++ b/src/services/email.py @@ -6,6 +6,7 @@ from email.message import EmailMessage from math import isnan +import openpyxl import pandas as pd import html2text from PySide6.QtCore import QThread, Signal @@ -54,8 +55,14 @@ def readBody(self) -> Template: def readTable(self) -> tuple[list[Dict[str, str]], list[str]]: if self.tablePath.endswith(".csv"): + self.output( + f"Using pandas {pd.__version__} to read {self.tablePath}" + ) table = pd.read_csv(self.tablePath, index_col=False) elif self.tablePath.endswith(".xlsx"): + self.output( + f"Using openpyxl {openpyxl.__version__} to read {self.tablePath}" + ) table = pd.read_excel(self.tablePath, index_col=False) else: raise ValueError("Unsupported file extension")