correction bug avec emails et scheduler
This commit is contained in:
parent
abbeae53c1
commit
1ebaaf8322
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user