def findContext(items, slug):
  slug = slug.upper()
  item = next((i for i in items if i['name'].upper().endswith(slug)), None)
  return item
Find an item with the slug in items (a list of items).
dataset/ETHPy150Open DeanCutlet/filestack/views.py/findContext