def Execute(self):
        logger.info("Starting rollback %s" % self._id)
        deletion_status = {}
        user = User.Get(self.UserID)
        for svc_id, upload_ids in self.PendingDeletions.items():
            svcrec = User.GetConnectionRecord(user, svc_id)
            deletion_status[svc_id] = {}
            if not svcrec.Service.SupportsActivityDeletion:
                continue
            for upload_id in upload_ids:
                logger.info("Deleting activity %s on %s" % (upload_id, svc_id))
                try:
                    svcrec.Service.DeleteActivity(svcrec, upload_id)
                except Exception as e:
                    deletion_status[svc_id][str(upload_id)] = False
                    logger.exception(e % "Deletion failed - %s")
                else:
                    deletion_status[svc_id][str(upload_id)] = True
                db.rollback_tasks.update({"_id": self._id}, {"$set": {"DeletionStatus": deletion_status}})
        logger.info("Finished rollback %s" % self._id)
dataset/ETHPy150Open cpfair/tapiriik/tapiriik/services/rollback.py/RollbackTask.Execute/swapped operands of `%`