What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 131 Stack Exchange communities.

The votes by day and week statistics in the profile page reset on a new month and display the wrong value for the week.

Vote statistics

share|improve this question
1  
It's a new month. But not a new week. Mine shows 2 votes for the week. That's clearly wrong. –  Mysticial Nov 1 '12 at 1:40
    
I just voted on Stackoverflow and no additional votes for day or month appeared after waiting a few minutes. –  juergen d Nov 1 '12 at 1:43
    
@juergend: The stats are cached, it takes a small amount of time for vote counts to update. –  animuson Nov 1 '12 at 1:45
    
Now the vote is displayed in the statictics. But Mystical is right - one vote per week can't be right. –  juergen d Nov 1 '12 at 1:49
4  
Looks like that week is not the week we think it is. Or more likely, new month "reset" the weekly vote count which is a bug indeed. :) –  Shadow Wizard Nov 1 '12 at 9:37

1 Answer 1

up vote 2 down vote accepted
+100

The query was incorrect here, not accounting for the fact a week can start before a month does in the overall set it was tallying (e.g. WHERE v.CreationDate >= @thisMonth rather than @minOfMonthAndWeekStartDates - we don't really name variables like that, calm down).

Obviously this isn't consistent with everywhere else and wasn't intended. The bug will be fixed in the next build.

share|improve this answer
2  
What's wrong with those variable names? :) –  ErikE Jan 3 '13 at 10:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .