From e90ff0eeb76aa9d7d7b6aeb1c78ff3a47c30f265 Mon Sep 17 00:00:00 2001 From: shypike Date: Mon, 6 Jan 2014 20:35:49 +0100 Subject: [PATCH] Fix bug in rating system. Caused posting comments multiple times if the user added a comment and then rated the release or used one of the other reporting functions after adding the comment. --- sabnzbd/rating.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sabnzbd/rating.py b/sabnzbd/rating.py index 03ef00b..1bea234 100644 --- a/sabnzbd/rating.py +++ b/sabnzbd/rating.py @@ -252,7 +252,7 @@ class Rating(Thread): _warn('Ratings server failed to process request (%s, %s)' % (response.status, response.reason)) return False - rating.changed = 0 + self.ratings[indexer_id].changed = self.ratings[indexer_id].changed & ~rating.changed _reset_warn() return True except: