Python Using Databases in Python Meet Peewee First Queries

Vishnu Pratap
Vishnu Pratap
557 Points

Unable to solve task 2 in

Please help to to solve this task
from models import Challenge
for challenge in all_challenges:
ghaith omar
ghaith omar
11,839 Points


he asked to put all the challenges inside challenge class into the all_challenges variable, not to make one so you must select the challenges for the class like this:

all_challenges = Challenge().select()

it use the select method in the class challenge to save all challenges inside the variable .