Skip to content

Commit

Permalink
Bugfix: not removing object_id from objects zset.
Browse files Browse the repository at this point in the history
  • Loading branch information
mindflayer committed Jun 27, 2013
1 parent 090c7a1 commit f131516
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions reding/resources.py
Expand Up @@ -480,11 +480,6 @@ def delete(self, object_id, user_id):
user_id,
)

self.redis.zrem(
get_object_key_name(**args),
object_id,
)

return '', 204

def _perform_correction(self, object_id, user_id, next_vote, args):
Expand All @@ -508,6 +503,11 @@ def _perform_correction(self, object_id, user_id, next_vote, args):
object_id,
correction,
)
else:
self.redis.zrem(
get_object_key_name(**args),
object_id,
)

__all__ = (
'VotedSummaryResource',
Expand Down

0 comments on commit f131516

Please sign in to comment.