Skip to content

Commit

Permalink
Fix "Papers curated per year" graph
Browse files Browse the repository at this point in the history
Was showing only the community curated sessions.
  • Loading branch information
kimrutherford committed Oct 9, 2024
1 parent 662e324 commit cf9f273
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stats/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@ def make_by_year_df(config, raw_stat_type, min_year):
row_date = row[0]
if min_year is None or row_date >= str(min_year):
date.append(row_date)
curatable.append(row[1][0])
curated.append(row[1][1])
curatable_count = row[1][0]
community_curated_count = row[1][1]
admin_curated_count = row[1][2]
curatable.append(curatable_count)
curated.append(community_curated_count+admin_curated_count)

return pd.DataFrame(data=d, index=date)

Expand Down

0 comments on commit cf9f273

Please sign in to comment.