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
cca9db23
Verified
Commit
cca9db23
authored
1 year ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Reformat and fix lint
parent
a25dad8b
No related branches found
No related tags found
1 merge request
!334
Update pyproject.toml
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/apps/alsijil/model_extensions.py
+1
-1
1 addition, 1 deletion
aleksis/apps/alsijil/model_extensions.py
aleksis/apps/alsijil/views.py
+1
-3
1 addition, 3 deletions
aleksis/apps/alsijil/views.py
with
2 additions
and
4 deletions
aleksis/apps/alsijil/model_extensions.py
+
1
−
1
View file @
cca9db23
...
@@ -52,7 +52,7 @@ def mark_absent(
...
@@ -52,7 +52,7 @@ def mark_absent(
to_period
:
Optional
[
int
]
=
None
,
to_period
:
Optional
[
int
]
=
None
,
dry_run
:
bool
=
False
,
dry_run
:
bool
=
False
,
):
):
"""
Mark a person absent for all lessons in a day, optionally starting with a
selected
period number.
"""
Mark a person absent for all lessons in a day, optionally starting with a period number.
This function creates `PersonalNote` objects for every `LessonPeriod` and `ExtraLesson`
This function creates `PersonalNote` objects for every `LessonPeriod` and `ExtraLesson`
the person participates in on the selected day and marks them as absent/excused.
the person participates in on the selected day and marks them as absent/excused.
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/alsijil/views.py
+
1
−
3
View file @
cca9db23
...
@@ -886,9 +886,7 @@ def overview_person(request: HttpRequest, id_: Optional[int] = None) -> HttpResp
...
@@ -886,9 +886,7 @@ def overview_person(request: HttpRequest, id_: Optional[int] = None) -> HttpResp
stats
=
[]
stats
=
[]
for
school_term
in
school_terms
:
for
school_term
in
school_terms
:
stat
=
{}
stat
=
{}
personal_notes
=
PersonalNote
.
objects
.
filter
(
personal_notes
=
PersonalNote
.
objects
.
filter
(
person
=
person
,).
filter
(
person
=
person
,
).
filter
(
Q
(
lesson_period__lesson__validity__school_term
=
school_term
)
Q
(
lesson_period__lesson__validity__school_term
=
school_term
)
|
Q
(
extra_lesson__school_term
=
school_term
)
|
Q
(
extra_lesson__school_term
=
school_term
)
|
Q
(
event__school_term
=
school_term
)
|
Q
(
event__school_term
=
school_term
)
...
...
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