What is the most secure way to revert Mycodo to a previous version?

Execute this to fix any issues:

sudo ~/Mycodo/mycodo/scripts/upgrade_post.sh