Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
Signed-off-by: sachin-panayil <[email protected]>
  • Loading branch information
sachin-panayil committed Oct 17, 2024
1 parent 2c08fe6 commit 32be9e2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/gen_graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
import datetime
from datetime import timedelta
import re
import pygal
import random

import pygal

def percent_formatter(x):
"""
Expand Down Expand Up @@ -569,7 +568,7 @@ def generate_people_estimate_bar_chart(oss_entity):
bar_chart.add(None, [0])

write_repo_chart_to_file(oss_entity, bar_chart, "estimated_people_contributing")
git
def generate_average_issue_resolution_graph(oss_entity):
"""
This function generates a pygal gauge chart for average issue resolution time.
Expand All @@ -578,7 +577,7 @@ def generate_average_issue_resolution_graph(oss_entity):
oss_entity: An object containing the metric data.
"""
gauge_graph = pygal.Gauge(legend_at_bottom=True)

metric_data = oss_entity.metric_data.get('average_issue_resolution_time')
if not metric_data or not metric_data[0]:
print("No data available for average issue resolution time")
Expand Down

0 comments on commit 32be9e2

Please sign in to comment.