def search_character(): character_name = request.form['name'] characters = data.get_character(character_name) flash("Characters found!") return render_template("search_character.html", characters=characters)
def resolve_character(self, info, id): return get_character(id)
def resolve_friends(self, info): return [get_character(f) for f in self.friends]
def resolve_friends(self, info): # The character friends is a list of strings return [get_character(f) for f in self.friends_id]