diff options
author | clarkzjw <[email protected]> | 2023-03-28 13:29:36 -0700 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-03-28 13:29:36 -0700 |
commit | 0559d681e1a973431385de741d094677143d4407 (patch) | |
tree | f1c49fc2b950c7c81b5fa94a98508e2edcb31426 /bot/bot.py | |
parent | 7987a261d444b151e53177beffbb8abd16db141b (diff) | |
download | photo-0559d681e1a973431385de741d094677143d4407.tar.gz |
Diffstat (limited to 'bot/bot.py')
-rw-r--r-- | bot/bot.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -181,13 +181,13 @@ async def process(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: | |||
181 | output.seek(0) | 181 | output.seek(0) |
182 | upload_to_s3(photo.fileId, output.read()) | 182 | upload_to_s3(photo.fileId, output.read()) |
183 | 183 | ||
184 | await rebuild(update) | 184 | await rebuild(update, context) |
185 | 185 | ||
186 | except Exception: | 186 | except Exception: |
187 | await update.message.reply_markdown_v2(text="Error:\n```{}```".format(traceback.format_exc())) | 187 | await update.message.reply_markdown_v2(text="Error:\n```{}```".format(traceback.format_exc())) |
188 | 188 | ||
189 | 189 | ||
190 | async def rebuild(update: Update) -> None: | 190 | async def rebuild(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: |
191 | write_json() | 191 | write_json() |
192 | response = httpx.post(cloudflare_pages_deploy_hook_url) | 192 | response = httpx.post(cloudflare_pages_deploy_hook_url) |
193 | if response.status_code == 200: | 193 | if response.status_code == 200: |