def add_entry(title, text): new_entry = Entry(title, text) if new_entry.validate(): return EntryRepo.save(new_entry) else: return False
def show_entries(): return EntryRepo.all()