From f1aeebfe79bb3fe508a0491e15d1973987276fc8 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Tue, 20 Apr 2010 22:24:15 +0100 Subject: [PATCH] Cleaned up debug messages and forced typed conversion on status check --- hr/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hr/views.py b/hr/views.py index 1573a0c..9383a6c 100644 --- a/hr/views.py +++ b/hr/views.py @@ -163,11 +163,9 @@ def update_application(request, applicationid): ib = Inbox(settings.REDDIT_USER, settings.REDDIT_PASSWD) ib.send(application.user.redditaccount_set.all()[0].username, subject, message) - print app.status, APPLICATION_STATUS_ACCEPTED if int(app.status) == APPLICATION_STATUS_ACCEPTED: - print "Yup!" send_message(app, 'accepted') - elif app.status == APPLICATION_STATUS_REJECTED: + elif int(app.status) == APPLICATION_STATUS_REJECTED: send_message(app, 'rejected') return HttpResponseRedirect(reverse('hr.views.view_application', args=[applicationid]))