def get_flash():
  key = settings.FLASH_COOKIE_NAME
  data = getattr(local, 'flash_message', None)
  if data is None:
    if key in local.request.cookies:
      data = local.request.cookies[key]
  local.flash_message = None
  if data:
    return pickle.loads(b64decode(data))
  return u''
Reads and deletes a flash message. Flash messages are stored in a cookie
dataset/ETHPy150Open IanLewis/kay/kay/utils/flash.py/get_flash