adrian-pace / FROG-analytics

Metrics and visualizations on the behaviour of users in various online editors
1 stars 3 forks source link

pad.alternating_score bug #12

Closed adrian-pace closed 6 years ago

adrian-pace commented 6 years ago

the following line doesn't work if main_authors = 1 (if there is only the admin writing) len(main_authors) - 1

lbaligand commented 6 years ago

Yes, if there is only one paragraph, it can't alternate, then we return 0, i'll fix it, thanks for pointing it out

adrian-pace commented 6 years ago

no, I meant if len(main_authors) = 1, you divide by zero so it throws an error