Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
c5bb60b6
Commit
c5bb60b6
authored
Nov 07, 2024
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
same as previous commit in another function
parent
20e1026a
Pipeline
#3897
canceled with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
models.py
members/models.py
+1
-1
No files found.
members/models.py
View file @
c5bb60b6
...
@@ -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
):
[
shift
D
ata
,
is_ftop
]
=
cs
.
get_shift_partner
(
int
(
partner
[
'id'
]))
[
shift
_d
ata
,
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment