Skip to content

Commit

Permalink
chore: update asyncmy
Browse files Browse the repository at this point in the history
  • Loading branch information
long2ice committed Nov 29, 2023
1 parent 40ae0f5 commit 36fe5c5
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.12'
- name: Install and configure Poetry
run: |
pip install -U pip poetry
Expand Down
2 changes: 1 addition & 1 deletion meilisync/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def refresh(
async def _():
settings = context.obj["settings"]
source = context.obj["source"]
meili = context.obj["meili"] # type: Meili
meili = context.obj["meili"]
progress = context.obj["progress"]
for sync in settings.sync:
if not table or sync.table in table:
Expand Down
2 changes: 1 addition & 1 deletion meilisync/source/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Mongo(Source):
def __init__(self, progress: dict, tables: List[str], **kwargs):
super().__init__(progress, tables, **kwargs)
database = self.kwargs.pop("database")
self.client = motor.motor_asyncio.AsyncIOMotorClient(**self.kwargs)
self.client = motor.motor_asyncio.AsyncIOMotorClient(**self.kwargs) # type: ignore
self.db = self.client[database]

async def get_full_data(self, sync: Sync, size: int):
Expand Down
73 changes: 62 additions & 11 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ version = "0.1.2"

[tool.poetry.dependencies]
aiofiles = "*"
asyncmy = { git = "https://github.com/long2ice/asyncmy.git", optional = true }
asyncmy = "^0.2.9"
loguru = "*"
meilisearch-python-sdk = "*"
motor = { version = "*", optional = true }
Expand Down

0 comments on commit 36fe5c5

Please sign in to comment.