Skip to content

Commit

Permalink
fix: Replace InquirerPy by InquirerLib for better support, update dep…
Browse files Browse the repository at this point in the history
…endencies, update checkbox behavior
  • Loading branch information
mathix420 committed Aug 26, 2024
1 parent c81c2ea commit 9ff7d6f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools >= 56"]

[project]
name = "rofi-notion"
version = "2.1.0"
version = "2.1.1"
authors = [
{name = "Arnaud Gissinger", email = "[email protected]"},
]
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion rofi_notion/manage.py
Original file line number Diff line number Diff line change
@@ -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


Expand Down
6 changes: 2 additions & 4 deletions rofi_notion/transcoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 9ff7d6f

Please sign in to comment.