Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Chronos
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-Chronos
Commits
d35f7db9
Verified
Commit
d35f7db9
authored
4 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Fix missing returns and assignments in relation to supervision querysets
parent
60ad9b7d
No related branches found
No related tags found
1 merge request
!107
Fix missing returns and assignments in relation to supervision querysets
Pipeline
#4862
passed
4 years ago
Stage: test
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/apps/chronos/managers.py
+1
-1
1 addition, 1 deletion
aleksis/apps/chronos/managers.py
aleksis/apps/chronos/util/build.py
+1
-1
1 addition, 1 deletion
aleksis/apps/chronos/util/build.py
with
2 additions
and
2 deletions
aleksis/apps/chronos/managers.py
+
1
−
1
View file @
d35f7db9
...
...
@@ -522,7 +522,7 @@ class SupervisionQuerySet(ValidityRangeRelatedQuerySet, WeekQuerySetMixin):
def
filter_by_weekday
(
self
,
weekday
:
int
):
"""
Filter supervisions by weekday.
"""
self
.
filter
(
return
self
.
filter
(
Q
(
break_item__before_period__weekday
=
weekday
)
|
Q
(
break_item__after_period__weekday
=
weekday
)
)
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/chronos/util/build.py
+
1
−
1
View file @
d35f7db9
...
...
@@ -129,7 +129,7 @@ def build_timetable(
)
if
is_person
:
supervisions
.
filter_by_weekday
(
date_ref
.
weekday
())
supervisions
=
supervisions
.
filter_by_weekday
(
date_ref
.
weekday
())
supervisions_per_period_after
=
{}
for
supervision
in
supervisions
:
...
...
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