Код: Выделить всё
def get_most_recent_tasks(page: int) -> list:
offset = (3 * page) - 3
query = TaskModel.select().order_by(TaskModel.creation_date.desc()).limit(3).offset(offset)
most_recent_tasks = query.execute()
print(most_recent_tasks)
Код: Выделить всё
most_recent_tasks = query.execute()
^^^^^^^^^^^^^^^
peewee.OperationalError: no such table: Tasks
Подробнее здесь: https://stackoverflow.com/questions/790 ... able-tasks