Fun Statistics: Character and Place counts incorrect

TalkBug Collectors

Join LibraryThing to post.

Fun Statistics: Character and Place counts incorrect

This topic is currently marked as "dormant"—the last message is more than 90 days old. You can revive it by posting a reply.

1jpers36
Oct 19, 2010, 2:04 pm

My fun statistics page states:
397 Series
296 Awards
5 Characters
1 Places

Clicking through to the actual pages, I get the numbers:
397 Series
297 Awards
5111 Characters
1108 Places

2Collectorator
Oct 19, 2010, 2:56 pm

This member has been suspended from the site.

3readafew
Oct 19, 2010, 3:06 pm

it appears to be truncating to the first digit. I have over 8161 Characters listed for my CK and I get an 8 on the fun stats page.

also I get a 1 for places but I have 1374, so this must be something funny happening when the number gets great than 999.

4jpers36
Oct 20, 2010, 10:42 am

My guess is that the fields are converted to strings to add the commas for readability, and then for some reason the code attempts to convert them back to decimals, parsing only the part of the string before the comma.

5timspalding
Edited: Oct 22, 2010, 7:33 am

Fixed. Main stats page is now also "ajaxed," so it shows up right away.