From 52f09f499103e08bfdfa4ec8c979e7368bf4c8f5 Mon Sep 17 00:00:00 2001 From: pseusys Date: Sun, 19 Mar 2023 17:33:35 +0100 Subject: [PATCH] chart file is being copied properly --- sources/yearly_commit_calculator.py | 4 ++++ 1 file changed, 4 insertions(+) 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)