Commit 0e449a93 by Yvon Kerdoncuff

match method naming standards

parent e4671fda
......@@ -757,7 +757,7 @@ def create_pair(request):
'parent_id',
'suppleant_member_id'])[0]
case = isPartnerInvolvedInBinom(api, child)
case = is_partner_involved_in_binom(api, child)
errors = []
if case == "MEMBER_SUPPLEANT_OF_BINOM":
......@@ -771,7 +771,7 @@ def create_pair(request):
if child['current_template_name'] == "Services des comités":
errors.append("Le membre suppléant séléctionné fait parti du comité")
case = isPartnerInvolvedInBinom(api, parent)
case = is_partner_involved_in_binom(api, parent)
errors = []
if case == "MEMBER_SUPPLEANT_OF_BINOM":
......@@ -882,7 +882,7 @@ def handle_suppleant_scheduled_makeups_on_pairing(parent_id, child, child_schedu
parent_scheduled_makeups_length = parent_scheduled_makeups_length + 1
def isPartnerInvolvedInBinom(api, partner):
def is_partner_involved_in_binom(api, partner):
# First make sure the selected partner "is not already a suppleant"
# Let's be prudent : cover both case of partner being suppleant member,
# and case of partner being the contact of a suppleant member
......
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