Commit c5bb60b6 by Yvon Kerdoncuff

same as previous commit in another function

parent 20e1026a
Pipeline #3897 canceled with stage
...@@ -1425,7 +1425,7 @@ class CagetteMembers(models.Model): ...@@ -1425,7 +1425,7 @@ class CagetteMembers(models.Model):
if res: if res:
cs = CagetteShift() cs = CagetteShift()
for idx, partner in enumerate(res): for idx, partner in enumerate(res):
[shiftData, is_ftop] = cs.get_shift_partner(int(partner['id'])) [shift_data, is_ftop] = cs.get_shift_partner(int(partner['id']))
res[idx]['makeups_to_come'] = sum(1 for value in shift_data if value['is_makeup']) res[idx]['makeups_to_come'] = sum(1 for value in shift_data if value['is_makeup'])
@staticmethod @staticmethod
......
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