Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit a21b3ac

Browse files
authored
Merge pull request #35 from pedrojmendoza/patch-1
Using Python 2 string formatting
2 parents c9a09bb + 2599760 commit a21b3ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/source/ZipDl/lambda_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def lambda_handler(event, context):
9595
archive_root = event['body-json']['project']['http_url'].strip('.git')
9696
project_id = event['body-json']['project_id']
9797
branch = event['body-json']['ref'].replace('refs/heads/', '')
98-
archive_url = f"https://gitlab.com/api/v4/projects/{project_id}/repository/archive.zip"
98+
archive_url = "https://gitlab.com/api/v4/projects/{}/repository/archive.zip".format(project_id)
9999
params = {'private_token': OAUTH_token, 'sha': branch}
100100

101101
owner = event['body-json']['project']['namespace']

0 commit comments

Comments
 (0)