Welcome to the Treehouse Community
Looking to learn something new?
Daniel D'luyz2,880 Points
I can't find my error search_challenges()
I can't seem to find my error on this task.
Help is appreciated!
from models import Challenge def create_challenge(name, language, steps=1): Challenge.create(name=name, language=language, steps=steps) def search_challenges(name, language): Challenge.select().where(Challenge.name.contains(name), Challenge.language == language)
You need to return the data from the function in a select statement otherwise the function will not do anything.
def search_challenges(name, language): return Challenge.select().where(Challege.name.contains(name), Challenge.language == language)