Пример #1
0
def add_entry(title, text):
    new_entry = Entry(title, text)
    if new_entry.validate():
        return EntryRepo.save(new_entry)
    else:
        return False
Пример #2
0
def show_entries():
    return EntryRepo.all()