fix: status code 202 error

This commit is contained in:
anmol singh
2023-11-22 11:36:38 +05:30
parent 02827d6adc
commit 7063c39f20
3 changed files with 23 additions and 7 deletions

View File

@@ -21,7 +21,8 @@ async def create_loc_graph(yearly_data: Dict, save_path: str):
:param save_path: Path to save the graph file.
"""
colors = await DM.get_remote_yaml("linguist")
if colors is None:
colors = dict()
years = len(yearly_data.keys())
year_indexes = arange(years)