Clean up of the stats graph
Before Width: | Height: | Size: 199 KiB After Width: | Height: | Size: 206 KiB |
Before Width: | Height: | Size: 196 KiB After Width: | Height: | Size: 205 KiB |
Before Width: | Height: | Size: 196 KiB After Width: | Height: | Size: 203 KiB |
Before Width: | Height: | Size: 264 KiB After Width: | Height: | Size: 277 KiB |
Before Width: | Height: | Size: 258 KiB After Width: | Height: | Size: 273 KiB |
Before Width: | Height: | Size: 258 KiB After Width: | Height: | Size: 271 KiB |
BIN
Docs/Tools/Theme distribution in 2020.png
Normal file
After Width: | Height: | Size: 535 KiB |
BIN
Docs/Tools/Theme distribution in 2021.png
Normal file
After Width: | Height: | Size: 544 KiB |
BIN
Docs/Tools/Theme distribution.png
Normal file
After Width: | Height: | Size: 764 KiB |
|
@ -80,7 +80,6 @@ def build_hist(stats, keyIndex, valueIndex, condition=None):
|
||||||
hist = Hist("date")
|
hist = Hist("date")
|
||||||
c = 0
|
c = 0
|
||||||
for row in stats:
|
for row in stats:
|
||||||
print(row[0] + " => " + str(condition(row)))
|
|
||||||
if condition is not None and not condition(row):
|
if condition is not None and not condition(row):
|
||||||
continue
|
continue
|
||||||
c += 1
|
c += 1
|
||||||
|
@ -214,10 +213,12 @@ def gen_theme_breakdown_graphs(contents, user=None):
|
||||||
create_theme_breakdown(contents, str(year), user)
|
create_theme_breakdown(contents, str(year), user)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
print("Creating logs...")
|
||||||
with open('stats.csv', newline='') as csvfile:
|
with open('stats.csv', newline='') as csvfile:
|
||||||
stats = list(csv.reader(csvfile, delimiter=',', quotechar='"'))
|
stats = list(csv.reader(csvfile, delimiter=',', quotechar='"'))
|
||||||
# create_yearly_usercount_graphs(stats)
|
print("Found "+str(len(stats))+" changesets")
|
||||||
gen_theme_breakdown_graphs(stats, "joost schouppe")
|
create_yearly_usercount_graphs(stats)
|
||||||
|
gen_theme_breakdown_graphs(stats)
|
||||||
print("All done!")
|
print("All done!")
|
||||||
|
|
||||||
|
|
||||||
|
|