From 00e141dcfbdc4f4bd8dff7bf9108f16897a8d263 Mon Sep 17 00:00:00 2001 From: "Ilya (Marshal)" Date: Fri, 9 Sep 2022 17:17:39 +0200 Subject: [PATCH] disable alerts from translation platform --- make_and_send_alert.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/make_and_send_alert.py b/make_and_send_alert.py index b9ef599a1b..52d7549730 100644 --- a/make_and_send_alert.py +++ b/make_and_send_alert.py @@ -125,6 +125,10 @@ async def main() -> None: for json_response, _ in paginated_responses: commit_files.extend(json_response['files']) + commit_files = [file for file in commit_files if 'translations.telegram.org/' not in file['filename']] + if not commit_files: + return + html_url = commit_data['html_url'] alert_text = f'New changes of Telegram\n\n'