def get_tag(tag): """Returns all twisks tagged with a given tag""" twisks = Twisk.get_tag_feed(tag) return twisks
def show_tag(tag): """Shows all the twisks tagged with the given tag""" twisks = Twisk.get_tag_feed(tag) return render_template("list_twisks.html", twisks=twisks, no_twisks_message="No twisks with this tag !")