aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-03-28 13:29:36 -0700
committerclarkzjw <[email protected]>2023-03-28 13:29:36 -0700
commit0559d681e1a973431385de741d094677143d4407 (patch)
treef1c49fc2b950c7c81b5fa94a98508e2edcb31426 /bot/bot.py
parent7987a261d444b151e53177beffbb8abd16db141b (diff)
downloadphoto-master.tar.gz
fix rebuild commandHEADmaster
Diffstat (limited to 'bot/bot.py')
-rw-r--r--bot/bot.py4
1 files changed, 2 insertions, 2 deletions
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:
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
190async def rebuild(update: Update) -> None: 190async 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:
Powered by cgit v1.2.3 (git 2.41.0)