Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bug with error message

  • Loading branch information...
commit 2f1be79f69e841d5f5148017a1ff1466c1c9be5f 1 parent 27372c9
@dustball dustball authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 main.py
View
4 main.py
@@ -649,10 +649,10 @@ def get(self):
return
delta = datetime.utcnow() - account.created
if delta.days < DAYS_FOR_KEY:
- error = """<p>You have been a member for %(days)s days.
+ error = """<p>You have been a member for %(deltadays)s days.
After %(days)s days you qualify for a key. Check back in %(delta)s days!</p>
<p>If you believe this message is in error, please contact <a href=\"mailto:%(signup_email)s?Subject=Membership+create+date+not+correct\">%(signup_email)s</a>.</p>
-""" % {'days': DAYS_FOR_KEY, 'delta': DAYS_FOR_KEY-delta.days, 'signup_email': SIGNUP_HELP_EMAIL}
+""" % {'deltadays': delta.days, 'days': DAYS_FOR_KEY, 'delta': DAYS_FOR_KEY-delta.days, 'signup_email': SIGNUP_HELP_EMAIL}
self.response.out.write(render('templates/error.html', locals()))
return
bc = BadgeChange.all().filter('username =', account.username).fetch(100)
Please sign in to comment.
Something went wrong with that request. Please try again.