def do_deletes_simple(self, ids):
        """Performs a query per crawl and per table."""
        qs = list(self.__get_delete_queries(['hits_mv', 'hits_temp'], '='))
        for i, crawl_id in enumerate(ids, start=1):
            if self.limit and i > self.limit:
                break
            for q in qs:
                execute_sql(q.format(crawl_id))
            if 10 % i == 0:
                log.info(("{0}/{1} crawls processed, {2}s elapsed so far."
                    ).format(i, self.crawl_count, self.time_elapsed()))
                transaction.commit_unless_managed()
            execute_sql(("update main_crawl set has_hits_mv = false where"
                " id = {0}").format(crawl_id))

        transaction.commit_unless_managed()
        return i
dataset/ETHPy150Open ipeirotis/Mturk-Tracker/app/mturk/updaters/management/commands/remove_bad_crawl_related.py/Command.do_deletes_simple/swapped operands of `%`