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
ffcc0c36
Commit
ffcc0c36
authored
May 19, 2023
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#4743: Log 'record_service_presence' activity
parent
c14fce2d
Pipeline
#2745
passed with stage
in 1 minute 29 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
views.py
members/views.py
+4
-1
No files found.
members/views.py
View file @
ffcc0c36
...
...
@@ -290,7 +290,8 @@ def record_service_presence(request):
stid
=
int
(
request
.
POST
.
get
(
"stid"
,
0
))
# shift_ticket_id
cancel
=
request
.
POST
.
get
(
"cancel"
)
==
'true'
typeAction
=
str
(
request
.
POST
.
get
(
"type"
))
coop_logger
.
info
(
"Enregistrement presence : mid =
%
s, rid =
%
s, sid =
%
s, stid =
%
s, cancel =
%
s, typeAction =
%
s"
,
str
(
mid
),
str
(
rid
),
str
(
sid
),
str
(
stid
),
str
(
cancel
),
typeAction
)
app_env
=
getattr
(
settings
,
'APP_ENV'
,
"prod"
)
if
(
rid
>
-
1
and
mid
>
0
):
overrided_date
=
""
...
...
@@ -312,6 +313,7 @@ def record_service_presence(request):
res
[
'update'
]
=
'ok'
else
:
res
[
'update'
]
=
'ko'
coop_logger
.
info
(
"Résultat update record_service_presence :
%
s"
,
res
[
'update'
])
if
res
[
'update'
]
==
'ok'
:
members
=
CagetteMember
.
search
(
'id'
,
mid
)
m
=
members
[
0
]
...
...
@@ -327,6 +329,7 @@ def record_service_presence(request):
except
Exception
as
e
:
res
[
'error'
]
=
str
(
e
)
coop_logger
.
error
(
"Erreur record_service_presence :
%
s"
,
str
(
e
))
return
JsonResponse
({
'res'
:
res
})
def
easy_validate_shift_presence
(
request
):
...
...
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