correction bug avec emails et scheduler

This commit is contained in:
Romain Beuque 2014-05-02 22:26:01 +02:00
parent abbeae53c1
commit 1ebaaf8322
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ class GetEmailsController(AuthenticatedBaseController):
members = Member.get_all(self.user, residence_dn)
emails = []
for member in members:
if not CotisationComputes.is_old_member(member, self.user, residence_dn):
if not CotisationComputes.is_old_member(member.dn, self.user, residence_dn):
emails.append(member.mail.first())
#end if
#end for

View File

@ -31,7 +31,7 @@ def disconnect_members_from_residence(admin_user, residence_dn):
machines_tuples = Machine.get_machine_tuples_of_member(admin_user, member.dn)
if machines_tuples != []:
if not CotisationComputes.is_cotisation_paid(member, admin_user, residence_dn):
if not CotisationComputes.is_cotisation_paid(member.dn, admin_user, residence_dn):
dhcps = Machine.get_dhcps(admin_user, member.dn)
machine_membre_tag = "machine_membre" # FIXME move to config