Python Using Databases in Python Meet Peewee Create Table

Aaron Lenhart
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Aaron Lenhart
Python Development Techdegree Graduate 20,745 Points

Why is this not passing

from peewee import *

db = SqliteDatabase("challenges.db")

class Challenge(): name = CharField(max_length = 100, unique=True) language = CharField(max_length = 100, unique=True)

class Meta:
    database = db
tables.py
from peewee import *

db = SqliteDatabase("challenges.db")

class Challenge():
    name = CharField(max_length = 100, unique=True)
    language = CharField(max_length = 100, unique=True)

    class Meta:
        database = db

1 Answer