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
f70ac9a7
Commit
f70ac9a7
authored
Nov 19, 2021
by
François
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1689 don't display exempted people in shift list
parent
a7c0febd
Pipeline
#1495
passed with stage
in 1 minute 29 seconds
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 @
f70ac9a7
...
@@ -1174,7 +1174,7 @@ class CagetteServices(models.Model):
...
@@ -1174,7 +1174,7 @@ class CagetteServices(models.Model):
dateutil
.
parser
.
parse
(
s
[
'date_begin_tz'
])
.
replace
(
tzinfo
=
None
)
dateutil
.
parser
.
parse
(
s
[
'date_begin_tz'
])
.
replace
(
tzinfo
=
None
)
)
.
total_seconds
()
/
60
>
default_acceptable_minutes_after_shift_begins
)
.
total_seconds
()
/
60
>
default_acceptable_minutes_after_shift_begins
if
with_members
is
True
:
if
with_members
is
True
:
cond
=
[[
'id'
,
'in'
,
s
[
'registration_ids'
]],
[
'state'
,
'
!='
,
'cancel'
]]
cond
=
[[
'id'
,
'in'
,
s
[
'registration_ids'
]],
[
'state'
,
'
not in'
,
[
'cancel'
,
'waiting'
,
'draft'
]
]]
fields
=
[
'partner_id'
,
'shift_type'
,
'state'
,
'is_late'
]
fields
=
[
'partner_id'
,
'shift_type'
,
'state'
,
'is_late'
]
members
=
api
.
search_read
(
'shift.registration'
,
cond
,
fields
)
members
=
api
.
search_read
(
'shift.registration'
,
cond
,
fields
)
s
[
'members'
]
=
sorted
(
members
,
key
=
lambda
x
:
x
[
'partner_id'
][
0
])
s
[
'members'
]
=
sorted
(
members
,
key
=
lambda
x
:
x
[
'partner_id'
][
0
])
...
...
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