Пример #1
0
def list_open_polls():
    for poll in Poll.all():
        print(f"{poll.id}: {poll.title} (создано пользователем {poll.owner})")
Пример #2
0
def list_open_polls():
    for poll in Poll.all():
        print(f"{poll.id}: {poll.title} (created by {poll.owner})")
Пример #3
0
def list_open_polls():
    for poll in Poll.all():
        print(poll)
Пример #4
0
def list_open_polls():
    polls = Poll.all()
    for poll in polls:
        print(poll)