[fix] stupid f-strings

This commit is contained in:
Laurent Peuch 2020-05-06 21:59:24 +02:00
parent b5e5dd82f2
commit da3a8b14b2

View file

@ -460,12 +460,12 @@ async def github(request):
repository = request.json["repository"]["name"] repository = request.json["repository"]["name"]
user = request.json["sender"]["login"] user = request.json["sender"]["login"]
url = request.json["commit"]["html_url"] 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"] commit_author = request.json["commit"]["committer"]["login"]
if state not in ("success", "pending"): if state not in ("success", "pending"):
await notify( 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: else:
print( print(