@classmethod
  @gen.coroutine
  def MuteAlerts(cls, client, user_id):
    @gen.coroutine
    def _VisitDevice(device):
      device.alert_user_id = None
      yield gen.Task(device.Update, client)

    yield gen.Task(Device.VisitRange, client, user_id, None, None, _VisitDevice)
Turn off alerts to all devices owned by "user_id".
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/device.py/Device.MuteAlerts