Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Alsijil
Commits
a193743e
You need to sign in or sign up before continuing.
Verified
Commit
a193743e
authored
2 years ago
by
magicfelix
Browse files
Options
Downloads
Patches
Plain Diff
Fix LessonDocumentationOnHolidaysDataCheck
parent
7a76c1ae
No related branches found
No related tags found
2 merge requests
!301
Fix LessonDocumentationOnHolidaysDataCheck
,
!300
Fix LessonDocumentationOnHolidaysDataCheck
Pipeline
#86221
failed
2 years ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/alsijil/data_checks.py
+2
-2
2 additions, 2 deletions
aleksis/apps/alsijil/data_checks.py
with
2 additions
and
2 deletions
aleksis/apps/alsijil/data_checks.py
+
2
−
2
View file @
a193743e
...
...
@@ -113,7 +113,7 @@ class LessonDocumentationOnHolidaysDataCheck(DataCheck):
documentations
=
LessonDocumentation
.
objects
.
not_empty
().
annotate_date_range
()
q
=
Q
()
q
=
Q
(
pk__in
=
[]
)
for
holiday
in
holidays
:
q
=
q
|
Q
(
day_end__gte
=
holiday
.
date_start
,
day_start__lte
=
holiday
.
date_end
)
documentations
=
documentations
.
filter
(
q
)
...
...
@@ -147,7 +147,7 @@ class PersonalNoteOnHolidaysDataCheck(DataCheck):
personal_notes
=
PersonalNote
.
objects
.
not_empty
().
annotate_date_range
()
q
=
Q
()
q
=
Q
(
pk__in
=
[]
)
for
holiday
in
holidays
:
q
=
q
|
Q
(
day_end__gte
=
holiday
.
date_start
,
day_start__lte
=
holiday
.
date_end
)
personal_notes
=
personal_notes
.
filter
(
q
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment