Update page.py

Fixed crash on downvote
This commit is contained in:
michael-lazar
2015-06-02 16:26:53 -07:00
parent 0f591ed0fb
commit 3b964a7721

View File

@@ -310,7 +310,7 @@ class BasePage(object):
try:
if 'likes' not in data:
pass
if data['likes'] is False:
elif not data['likes']:
data['object'].clear_vote()
data['likes'] = None
else:
@@ -567,4 +567,4 @@ class BasePage(object):
for row in range(n_rows):
window.chgat(row, 0, 1, attribute)
window.refresh()
window.refresh()