def get_choices(): shows = Show.get_all_ordered() return [(str(show.idnr), { "name": show.ordered_name, "new": show.is_new, "tvrage_id": show.tvrage_id }) for show in shows]
def get_choices(): shows = Show.get_all_ordered() return [(str(show.idnr), {"name": show.ordered_name, "new": show.is_new, "tvrage_id": show.tvrage_id}) for show in shows]
def update(request): shows = Show.get_all_ordered() for show in shows: show.add_update_task() Episode.add_clear_cache_task("series") return HttpResponse("Done: %d" % (len(shows)))
def get_choices(): shows = Show.get_all_ordered() return [(str(show.idnr), "%s%s" % (show.ordered_name, int(show.is_new)), show.tvrage_id) for show in shows]