From da3a8b14b24ea17c4a53f8c81a6fef58f0a57770 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 6 May 2020 21:59:24 +0200 Subject: [PATCH] [fix] stupid f-strings --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 214f7b7..92765f6 100644 --- a/server.py +++ b/server.py @@ -460,12 +460,12 @@ async def github(request): repository = request.json["repository"]["name"] user = request.json["sender"]["login"] url = request.json["commit"]["html_url"] - commit_message = request.json["commit"]["commit"]["message"] + commit_message = request.json["commit"]["commit"]["message"].replace("\n", " ") commit_author = request.json["commit"]["committer"]["login"] if state not in ("success", "pending"): await notify( - f'[{repository}] {description} {target_url} on commit {url} "{commit_message.replace("\n", " ")}" by @{commit_author}' + f'[{repository}] {description} {target_url} on commit {url} "{commit_message}" by @{commit_author}' ) else: print(