Skip to content

Commit d5fc4fe

Browse files
Max len for changed_files (max cell len error in googleapi) (#68)
Co-authored-by: thehighestmath <[email protected]>
1 parent 001b407 commit d5fc4fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

commits_parser.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
'commit id',
1919
'branch',
2020
)
21+
GOOGLE_MAX_CELL_LEN = 50000
2122

2223

2324
def log_repository_commits(
@@ -42,12 +43,14 @@ def log_repository_commits(
4243
or commit.date.astimezone(pytz.timezone(TIMEZONE)) > finish
4344
):
4445
continue
46+
47+
changed_files = '; '.join([file for file in commit.files])
4548
commit_data = [
4649
repository.name,
4750
commit.author.username,
4851
commit.author.email or EMPTY_FIELD,
4952
commit.date,
50-
'; '.join([file for file in commit.files]),
53+
changed_files[:GOOGLE_MAX_CELL_LEN],
5154
commit._id,
5255
branch,
5356
]

0 commit comments

Comments
 (0)