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
6fba91e4
Commit
6fba91e4
authored
4 months ago
by
Jonathan Weth
Browse files
Options
Downloads
Plain Diff
Merge branch '272-don-t-show-monday-on-sundays' into 'master'
Resolve "Don't show monday on sundays" Closes
#272
See merge request
!388
parents
d764b4fd
fe9c5dfe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!388
Resolve "Don't show monday on sundays"
Pipeline
#193821
failed
4 months ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/chronos/schema/__init__.py
+2
-4
2 additions, 4 deletions
aleksis/apps/chronos/schema/__init__.py
with
2 additions
and
4 deletions
aleksis/apps/chronos/schema/__init__.py
+
2
−
4
View file @
6fba91e4
...
...
@@ -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
,
...
...
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