Permalink
Browse files

Fix dumb method calling typos

Wurrrr
  • Loading branch information...
1 parent 960ad87 commit faee6ea55b510384aba34679fbfe46682212e6f7 @rmorell rmorell committed May 24, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 main.py
  2. +2 −2 models.py
View
@@ -101,7 +101,7 @@ def post(self,urlcode):
self.response.out.write(template.render('templates/edit.html', locals()))
else:#otherwise we are saving changes
- if issue.vote_count:
+ if issue.vote_count():
raise Exception('Unable to change issue text once votes have been cast')
duration_amount = int(self.request.get('duration_amount'))
View
@@ -40,7 +40,7 @@ def vote_for_member(self,member=None):
return self.votes.filter('member =',member).get()
def register_vote(self,choice,member=None):
- if self.has_results:
+ if self.has_results():
raise Exception('Cannot vote in closed polls.')
if not member:
member = users.get_current_user()
@@ -61,7 +61,7 @@ def register_vote(self,choice,member=None):
def extend_duration(self,hours):
if hours <= 0:
raise Exception('Negative extensions are not valid.')
- if self.has_results:
+ if self.has_results():
raise Exception('Cannot extend closed polls.')
self.duration += hours
if self.start_time:

0 comments on commit faee6ea

Please sign in to comment.