Commit 7b51646b authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

move aquarium listener in endpoints

parent dcd6e792
......@@ -279,16 +279,6 @@ def invite(invitation, inviter, email_template_name='im/welcome_email.txt'):
inviter.invitations = max(0, inviter.invitations - 1)
inviter.save()
def set_user_credibility(email, has_credits):
try:
user = AstakosUser.objects.get(email=email, is_active=True)
user.has_credits = has_credits
user.save()
except AstakosUser.DoesNotExist, e:
logger.exception(e)
except ValidationError, e:
logger.exception(e)
class SendMailError(Exception):
pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment