Fixed incorrect tuple usage

This commit is contained in:
Marvin Pohl 2018-09-04 15:10:46 +02:00
parent c662c59386
commit 6fc4629dba
1 changed files with 4 additions and 4 deletions

View File

@ -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,