last.py 344 B

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