Do not remove ratings, just prevent them from being displayed in the best/worst list.

This commit is contained in:
Colin Kuskie 2009-12-09 10:39:42 -08:00
parent c0a9358bcf
commit f2b7762ddd

View file

@ -32,7 +32,6 @@ my $session = start(); # this line required
# upgrade functions go here
deleteFieldFromEMSSubmission($session);
tenVoteMinimumForMatrixRatings($session);
finish($session); # this line required
@ -61,15 +60,6 @@ ENDSQL
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Describe what our function does
sub tenVoteMinimumForMatrixRatings {
my $session = shift;
print "\tRestrict Matrix Listing Statistics to those with more than 10 ratings..." unless $quiet;
$session->db->write('update MatrixListing_ratingSummary set meanValue=0, medianValue=0 where countValue < 10');
print "\tDONE!\n" unless $quiet;
}
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
#----------------------------------------------------------------------------