Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Emprunts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dsi
dev
Emprunts
Merge requests
!28
Resolve "Ajouter un bouton 'Export CSV' sur la page des Conventions pour les secretaires de départements"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Ajouter un bouton 'Export CSV' sur la page des Conventions pour les secretaires de départements"
76-csv
into
main
Overview
0
Commits
3
Pipelines
1
Changes
8
Merged
Resolve "Ajouter un bouton 'Export CSV' sur la page des Conventions pour les secretaires de départements"
Bonnegent Sebastien
requested to merge
76-csv
into
main
Nov 15, 2023
Overview
0
Commits
3
Pipelines
1
Changes
8
Closes
#76 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
eb4a5512
3 commits,
Nov 15, 2023
8 files
+
79
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
core/management/commands/verifier_reservations.py
+
3
−
1
View file @ eb4a5512
Edit in single-file editor
Open in Web IDE
Show full file
@@ -12,7 +12,9 @@ class Command(BaseCommand):
def
handle
(
self
,
*
args
,
**
options
):
limite
=
dt
.
datetime
.
now
()
-
dt
.
timedelta
(
days
=
settings
.
DELAIS_RESERVATION
)
conventions
=
Convention
.
objects
.
filter
(
etat
=
Convention
.
Etat
.
ATTENTE_DEMANDEUR
,
date_debut__lt
=
limite
)
conventions
=
Convention
.
objects
.
filter
(
etat
=
Convention
.
Etat
.
ATTENTE_DEMANDEUR
,
date_debut__lt
=
limite
)
for
convention
in
conventions
:
materiel
=
convention
.
materiel
materiel
.
etat
=
Materiel
.
Etat
.
DISPO
Loading