Open e1red opened 8 years ago
Recommend doing this as an extension of #568 ; that is, when an account's weight is changed, past votes are modified to have the new weight. That means 0ing out an account will also erase any past votes as well as shutting off future ones.
Just a note that a straightforward rollback of upvotes and downvotes can be performed based on the results of get_liked and get_disliked defined in queries.py
This probably doesn't need to be a script if some small delay (100 milliseconds?) can be inserted between each database hit to reverse the votes.
https://github.com/tricycle/lesswrong/blob/dfdc6e30f8f149651d679e209bc3fa24beea51b7/r2/r2/lib/pages/pages.py
modify this script on line 1357: cells = ('user', 'sendmessage', 'remove') to also include a "neutralise karma" button. cells = ('user', 'sendmessage', 'remove', 'neutralise karma')
Also create a python script that parses all of the votes in the vote_engine by that user and adds a neutralising vote to the things they have voted on.
database structure:
Probably also want a warning between pushing the button and activating the script.