last.py 317 B

12345678910111213
  1. from helper import console
  2. def last(items=None):
  3. global search_cache
  4. if items is not None:
  5. search_cache = items
  6. else:
  7. if search_cache is None:
  8. console.output('First search has yet te be made', console.DBG_ERROR)
  9. else:
  10. search(search_cache)
  11. return True