Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Commit b3bde10

Browse files
committed
Fix
1 parent 1ed6677 commit b3bde10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pollbot/models/option.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self, poll, name):
5252
"""Create a new poll."""
5353
self.poll = poll
5454
self.name = name
55-
if len(option.index) == 0:
55+
if len(poll.options) == 0:
5656
option.index = 0
5757
else:
5858
self.index = max(option.index for option in poll.options) + 1

0 commit comments

Comments
 (0)