Enumerate posts in example from 1

This commit is contained in:
Alex Root Junior 2018-11-24 22:50:18 +02:00
parent 30a50b4527
commit fc787188da

View file

@ -27,7 +27,7 @@ POSTS = {
'sed do eiusmod tempor incididunt ut ' 'sed do eiusmod tempor incididunt ut '
'labore et dolore magna aliqua', 'labore et dolore magna aliqua',
'votes': random.randint(-2, 5) 'votes': random.randint(-2, 5)
} for index in range(5) } for index in range(1, 6)
} }
posts_cb = CallbackData('post', 'id', 'action') # post:<id>:<action> posts_cb = CallbackData('post', 'id', 'action') # post:<id>:<action>