diff --git a/sources/yearly_commit_calculator.py b/sources/yearly_commit_calculator.py index 3106db9..5ce0c94 100644 --- a/sources/yearly_commit_calculator.py +++ b/sources/yearly_commit_calculator.py @@ -1,3 +1,4 @@ +from asyncio import sleep from json import dumps from re import search from datetime import datetime @@ -81,3 +82,6 @@ async def update_data_with_commit_stats(repo_details: Dict, yearly_data: Dict, d yearly_data[curr_year][quarter][repo_details["primaryLanguage"]["name"]] = {"add": 0, "del": 0} yearly_data[curr_year][quarter][repo_details["primaryLanguage"]["name"]]["add"] += commit["additions"] yearly_data[curr_year][quarter][repo_details["primaryLanguage"]["name"]]["del"] += commit["deletions"] + + if not EM.DEBUG_RUN: + await sleep(0.4)