From 549e1a7fd201a329bc5ea650fdef79bcce10a9e0 Mon Sep 17 00:00:00 2001 From: illvart Date: Thu, 12 Sep 2024 19:43:30 +0700 Subject: [PATCH] update --- getter/plugins/core.py | 2 +- requirements-dev.txt | 2 +- requirements.txt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/getter/plugins/core.py b/getter/plugins/core.py index d30a84b..9490e13 100644 --- a/getter/plugins/core.py +++ b/getter/plugins/core.py @@ -473,7 +473,7 @@ async def _(kst): local_now = datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S") try: await yy.eor(f"`Reading {csv_file} file...`") - async with aiofiles.open(csv_file, mode="r") as f: + async with aiofiles.open(csv_file) as f: async for row in AsyncDictReader(f, delimiter=","): user = {"user_id": int(row["user_id"]), "hash": int(row["hash"])} users.append(user) diff --git a/requirements-dev.txt b/requirements-dev.txt index a21ad1c..fdc2e7d 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,3 @@ -ruff==0.6.3 +ruff==0.6.4 black==24.8.0 isort==5.13.2 diff --git a/requirements.txt b/requirements.txt index 132b1fa..6f475b1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ cryptg==0.4.0 psutil==6.0.0 heroku3==5.2.1 GitPython==3.1.43 -SQLAlchemy==2.0.32 +SQLAlchemy==2.0.34 asyncpg==0.29.0 aiosqlite==0.20.0 sqlalchemy-json==0.7.0 @@ -19,7 +19,7 @@ Markdown==3.7 beautifulsoup4==4.12.3 emoji==2.12.1 Unidecode==1.3.8 -validators==0.33.0 +validators==0.34.0 telegraph==2.2.0 requests==2.32.3 lottie==0.7.0