Moved the portion of code that checks if a submission has been processed to the top of the loop in scrape_domain_submissions(). Every other check doesn't matter if it's already been processed. Also, submissions will be marked as processed if they are deleted when the bot sees them.
Moved the portion of code that checks if a submission has been processed to the top of the loop in scrape_domain_submissions(). Every other check doesn't matter if it's already been processed. Also, submissions will be marked as processed if they are deleted when the bot sees them.

tzoch/dropbox-bot