Code and data for arewedecentralizedyet.online and related projects
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add back a check I accidentally removed

+8 -2
+8 -2
hhi.py
··· 18 18 if "software" not in row or row["software"] not in 19 19 ["NodeBB", "gotosocial", "Yellbot","misskey", "sharkey"]] 20 20 21 - # Different CSVs have different row names 22 - user_counts = [int(row["user_count"] if "user_count" in row else row["accountCount"]) for row in cleaned_reader] 21 + # Different CSVs have different row names, and the fediverse one 22 + # has some empty columns 23 + user_counts = [ 24 + int(row["user_count"]) if "user_count" in row and row["user_count"] != "" 25 + else int(row["accountCount"]) if row.get("accountCount", "") != "" 26 + else 0 27 + for row in cleaned_reader 28 + ] 23 29 24 30 # Remove clearly bogus data with < 0 users 25 31 user_counts = [a for a in user_counts if a > 0]