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