django-ratings icon indicating copy to clipboard operation
django-ratings copied to clipboard

rating_score and rating_votes return zero after moving database

Open mdgart opened this issue 15 years ago • 1 comments

I have a weird problem when i export my local database to the server (and vice versa) I still have the votes number and rating.get_ratings() working, but rating_score, rating_votes, rating.get_real_percent etc return all zero! Can you explane this? Is this related with the key field or with the ip?

mdgart avatar Feb 06 '10 14:02 mdgart

It's possible that the md5 hash which is used to calculate the key differs from the local and remote server I suppose. You could test this yourself by doing python -c "import hashlib; print hashlib.md5('test').hexdigest()"

dcramer avatar Feb 08 '10 14:02 dcramer