fix TypeError when API returns language bytes as string
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
95aaf91db4
commit
d8f72b7837
@@ -147,7 +147,7 @@ def aggregate_language_bytes(session: requests.Session, repos: list[dict]) -> di
|
||||
timeout=30,
|
||||
).json()
|
||||
for lang, bytes_ in langs.items():
|
||||
totals[lang] += bytes_
|
||||
totals[lang] += int(bytes_)
|
||||
|
||||
return dict(totals)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user