diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index a561ccc7..ab695741 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -1,4 +1,4 @@ -name: Python application test with GitHub Actions +name: Unit tests on: [push, pull_request] diff --git a/.github/workflows/release win.yml b/.github/workflows/release win.yml index dbfc91c7..20de7d07 100644 --- a/.github/workflows/release win.yml +++ b/.github/workflows/release win.yml @@ -13,11 +13,11 @@ jobs: with: show-progress: false - - name: Setup Python + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: python-version: 3.11 - cache: pip + - name: Install Tesseract run: | diff --git a/poker/main.py b/poker/main.py index 540d6658..bf716897 100644 --- a/poker/main.py +++ b/poker/main.py @@ -39,7 +39,7 @@ warnings.filterwarnings("ignore", category=UserWarning) warnings.filterwarnings("ignore", category=RuntimeWarning) -version = 6.73 +version = 6.74 ui = None diff --git a/poker/scraper/table_screen_based.py b/poker/scraper/table_screen_based.py index 110aef87..1d0ab38e 100644 --- a/poker/scraper/table_screen_based.py +++ b/poker/scraper/table_screen_based.py @@ -196,6 +196,13 @@ def check_fast_fold(self, h, p, mouse): crd2 = crd2.upper() sheet_name = str(self.position_utg_plus + 1) if sheet_name == '6': return True + try: + if int(sheet_name[0]) > 6: + old = sheet_name[0] + sheet_name = sheet_name.replace(old, '6', 1) + except Exception as e: + pass + sheet = h.preflop_sheet[sheet_name] sheet['Hand'] = sheet['Hand'].apply(lambda x: str(x).upper()) handlist = set(sheet['Hand'].tolist())