From 6fc4629dba5af8727c63c82d937b1401bb85d12e Mon Sep 17 00:00:00 2001 From: Marvin Pohl Date: Tue, 4 Sep 2018 15:10:46 +0200 Subject: [PATCH] Fixed incorrect tuple usage --- gitea/webhook.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gitea/webhook.py b/gitea/webhook.py index 49935d0..d3c47ec 100644 --- a/gitea/webhook.py +++ b/gitea/webhook.py @@ -31,8 +31,8 @@ class GiteaHandler(BaseHookHandler): for commit in payload['commits']: timestamp = dateparse(commit['timestamp']) change = { - 'author': '{} <{}>'.format((commit['author']['name'], - commit['author']['email'])), + 'author': '{} <{}>'.format(commit['author']['name'], + commit['author']['email']), 'comments': commit['message'], 'revision': commit['id'], 'when_timestamp': timestamp, @@ -64,8 +64,8 @@ class GiteaHandler(BaseHookHandler): head = pull_request['head'] repository = payload['repository'] change = { - 'author': '{} <{}>'.format((pull_request['user']['full_name'], - pull_request['user']['email'])), + 'author': '{} <{}>'.format(pull_request['user']['full_name'], + pull_request['user']['email']), 'comments': pull_request['body'], 'revision': pull_request['merge_base'], 'when_timestamp': timestamp,