diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4e704a0..efa60be 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,7 +10,7 @@ jobs: if: "!github.event.release.prerelease" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install dependencies run: | python3 -m pip install -U pip setuptools wheel twine @@ -24,7 +24,7 @@ jobs: if: "!github.event.release.prerelease" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install dependencies run: | diff --git a/pyproject.toml b/pyproject.toml index db6461a..e8d8efd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools >= 56"] [project] name = "rofi-notion" -version = "2.1.0" +version = "2.1.1" authors = [ {name = "Arnaud Gissinger", email = "agissing@student.42.fr"}, ] @@ -22,11 +22,11 @@ classifiers = [ ] dependencies = [ "prompt-toolkit>=3", - "notion-client==1.0.0", + "notion-client==2.2.1", "python-rofi==1.0.1", - "InquirerPy==0.3.4", + "InquirerLib==0.0.2", "argparse==1.4.0", - "PyYAML==6.0", + "PyYAML==6.0.2", ] [project.scripts] diff --git a/rofi_notion/manage.py b/rofi_notion/manage.py index 66dc82d..c307adf 100644 --- a/rofi_notion/manage.py +++ b/rofi_notion/manage.py @@ -1,7 +1,7 @@ from prompt_toolkit.validation import Validator, ValidationError from .config import rm_db, set_config, config, set_creds -from InquirerPy.resolver import prompt from prompt_toolkit import document +from InquirerLib import prompt import re diff --git a/rofi_notion/transcoders.py b/rofi_notion/transcoders.py index 2c642aa..17f6680 100644 --- a/rofi_notion/transcoders.py +++ b/rofi_notion/transcoders.py @@ -94,12 +94,10 @@ def people(r: Rofi, name: str, config: dict, store: Any) -> dict: def checkbox(r: Rofi, name: str, config: dict, store: Any) -> dict: - res = r.select(name, ['Yes', 'No']) - if res == None: - return {} + index, key = r.select(name, ['Yes', 'No'], ) return { name: { - 'checkbox': res == 'Yes' + 'checkbox': index == 0 } }