From 0559d681e1a973431385de741d094677143d4407 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Tue, 28 Mar 2023 13:29:36 -0700 Subject: fix rebuild command --- bot/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bot/bot.py') diff --git a/bot/bot.py b/bot/bot.py index 63a15a8..95c659c 100644 --- a/bot/bot.py +++ b/bot/bot.py @@ -181,13 +181,13 @@ async def process(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: output.seek(0) upload_to_s3(photo.fileId, output.read()) - await rebuild(update) + await rebuild(update, context) except Exception: await update.message.reply_markdown_v2(text="Error:\n```{}```".format(traceback.format_exc())) -async def rebuild(update: Update) -> None: +async def rebuild(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: write_json() response = httpx.post(cloudflare_pages_deploy_hook_url) if response.status_code == 200: -- cgit v1.2.3