Clean up of the stats graph

This commit is contained in:
pietervdvn 2021-03-10 20:16:47 +01:00
parent bf40ca9c4b
commit 5b39ba9a32
10 changed files with 4 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 KiB

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 KiB

After

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 KiB

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 KiB

After

Width:  |  Height:  |  Size: 277 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 KiB

After

Width:  |  Height:  |  Size: 273 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 KiB

After

Width:  |  Height:  |  Size: 271 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 535 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 764 KiB

View file

@ -80,7 +80,6 @@ def build_hist(stats, keyIndex, valueIndex, condition=None):
hist = Hist("date")
c = 0
for row in stats:
print(row[0] + " => " + str(condition(row)))
if condition is not None and not condition(row):
continue
c += 1
@ -214,10 +213,12 @@ def gen_theme_breakdown_graphs(contents, user=None):
create_theme_breakdown(contents, str(year), user)
def main():
print("Creating logs...")
with open('stats.csv', newline='') as csvfile:
stats = list(csv.reader(csvfile, delimiter=',', quotechar='"'))
# create_yearly_usercount_graphs(stats)
gen_theme_breakdown_graphs(stats, "joost schouppe")
print("Found "+str(len(stats))+" changesets")
create_yearly_usercount_graphs(stats)
gen_theme_breakdown_graphs(stats)
print("All done!")