Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Untis
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-Untis
Merge requests
!202
Fix import of supervision substitutions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix import of supervision substitutions
fix/supervision-substitutions
into
master
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Jonathan Weth
requested to merge
fix/supervision-substitutions
into
master
4 months ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
6eb35a86
1 commit,
4 months ago
2 files
+
10
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
aleksis/apps/untis/util/mysql/importers/events.py
+
2
−
2
Options
@@ -5,7 +5,7 @@ from django.utils.translation import gettext as _
from
reversion
import
create_revision
,
set_comment
from
tqdm
import
tqdm
from
aleksis.apps.chronos.models
import
LessonEvent
from
aleksis.apps.chronos.models
import
LessonEvent
,
SupervisionEvent
from
aleksis.apps.lesrooster.models
import
ValidityRange
from
....
import
models
as
mysql_models
@@ -140,7 +140,7 @@ def import_events(
extended_data__event_untis__isnull
=
False
,
datetime_start__date__lte
=
validity_range
.
date_end
,
datetime_end__date__gte
=
validity_range
.
date_start
,
):
).
not_instance_of
(
SupervisionEvent
):
if
e
.
extended_data
[
"
event_untis
"
]
not
in
existing_events
:
logger
.
info
(
f
"
Event
{
e
.
id
}
deleted
"
)
with
create_revision
():
Loading