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
Merge requests
!388
Resolve "Don't show monday on sundays"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Don't show monday on sundays"
272-don-t-show-monday-on-sundays
into
master
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Jonathan Weth
requested to merge
272-don-t-show-monday-on-sundays
into
master
4 months ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
Closes
#272 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
fe9c5dfe
1 commit,
4 months ago
1 file
+
2
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
aleksis/apps/chronos/schema/__init__.py
+
2
−
4
Options
@@ -14,7 +14,7 @@ from aleksis.core.util.core_helpers import get_site_preferences, has_person
from
..models
import
LessonEvent
from
..util.build
import
build_substitutions_list
from
..util.chronos_helpers
import
get_groups
,
get_next_relevant_day
,
get_rooms
,
get_teachers
from
..util.chronos_helpers
import
get_groups
,
get_rooms
,
get_teachers
class
TimetablePersonType
(
DjangoObjectType
):
@@ -278,9 +278,7 @@ class Query(graphene.ObjectType):
return
all_timetables
def
resolve_substitutions_for_date
(
root
,
info
,
date
):
substitutions
,
affected_teachers
,
affected_groups
=
build_substitutions_list
(
get_next_relevant_day
(
date
)
)
substitutions
,
affected_teachers
,
affected_groups
=
build_substitutions_list
(
date
)
return
SubstitutionsForDateType
(
affected_teachers
=
affected_teachers
,
affected_groups
=
affected_groups
,
Loading