Skip to content

Commit

Permalink
Merge pull request #86 from kastaid/dev
Browse files Browse the repository at this point in the history
update
  • Loading branch information
illvart authored Apr 25, 2024
2 parents 07fea3a + 4815f30 commit 60eb14e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions getter/plugins/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ async def _(kst):
pass
if not hk.is_heroku:
await yy.eor(r"\\**#Getter**// `Restarting as locally...`")
return await restart_app()
return restart_app()
try:
await yy.eor(r"\\**#Getter**// `Restarting as heroku... Wait for a few minutes.`")
app = hk.heroku().app(hk.name)
app.restart()
except Exception as err:
reply = await yy.eor(formatx_send(err), parse_mode="html")
await reply.reply(r"\\**#Getter**// `Restarting as locally...`", silent=True)
await restart_app()
restart_app()


@kasta_cmd(
Expand Down Expand Up @@ -194,7 +194,7 @@ async def heroku_logs(kst) -> None:
(file).unlink(missing_ok=True)


async def restart_app() -> None:
def restart_app() -> None:
os.system("clear")
try:
import psutil
Expand Down
2 changes: 1 addition & 1 deletion getter/plugins/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ async def _(kst):
pattern="crash$",
dev=True,
)
async def _(kst):
async def _(kst): # noqa: RUF029
raise ValueError("not an error, just for testing (>_")


Expand Down
2 changes: 1 addition & 1 deletion getter/plugins/vctools.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def group_call_instance(chat_id: int) -> None:
call = CALLS.get(chat_id)

@call.on_network_status_changed
async def __(context, is_connected):
async def __(context, is_connected): # noqa: RUF029
if not is_connected:
CALLS.pop(chat_id, None)

Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ruff==0.3.7
black==24.3.0
ruff==0.4.1
black==24.4.1
isort==5.13.2
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ cachetools==5.3.3
asyncache==0.3.1
aiofiles==23.2.1
aiocsv==1.3.1
aiohttp[speedups]==3.9.4
aiohttp[speedups]==3.9.5
httpx==0.27.0
Markdown==3.6
beautifulsoup4==4.12.3
emoji==2.11.0
emoji==2.11.1
Unidecode==1.3.8
validators==0.28.0
validators==0.28.1
telegraph==2.2.0
requests==2.31.0
lottie==0.7.0
Pillow==10.3.0
CairoSVG==2.7.1
uvloop==0.19.0
orjson==3.10.0
orjson==3.10.1

0 comments on commit 60eb14e

Please sign in to comment.