def fav_place(uri, data={}): """Switch favorite status of the place. """ sv = veggiesailor.StorageFav() return sv.switch(uri, 1, data)
def fav_cities(): """Get favorite places. """ sv = veggiesailor.StorageFav() results = sv.get_favorites(0) return results
def fav_place_check(uri): """Check is place is favorite. """ return veggiesailor.StorageFav().exists(uri)