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
Commits
768994a0
Verified
Commit
768994a0
authored
3 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Use new change tracker from Chronos
parent
aa43cfd3
No related branches found
No related tags found
1 merge request
!127
Use new change tracker from Chronos
Pipeline
#56810
passed
3 years ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.rst
+1
-0
1 addition, 0 deletions
CHANGELOG.rst
aleksis/apps/untis/util/mysql/main.py
+3
-0
3 additions, 0 deletions
aleksis/apps/untis/util/mysql/main.py
with
4 additions
and
0 deletions
CHANGELOG.rst
+
1
−
0
View file @
768994a0
...
...
@@ -14,6 +14,7 @@ Changed
* Let untis_import_mysql management command default to ``current`` instead of all
to prevent accidental imports of old plans
* Use new change tracker from Chronos to trigger notifications
`2.1.3`_ - 2022-02-06
---------------------
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/untis/util/mysql/main.py
+
3
−
0
View file @
768994a0
...
...
@@ -5,6 +5,7 @@ from django.db.models import QuerySet
import
reversion
from
tqdm
import
tqdm
from
aleksis.apps.chronos.util.change_tracker
import
TimetableDataChangeTracker
from
aleksis.apps.untis.util.mysql.importers.terms
import
import_terms
from
aleksis.apps.untis.util.mysql.util
import
TQDM_DEFAULTS
...
...
@@ -35,6 +36,8 @@ def untis_import_mysql(terms: Optional[QuerySet] = None, version: Optional[int]
with
reversion
.
create_revision
(
atomic
=
True
):
reversion
.
set_comment
(
f
"
Untis import for validity range
{
validity_range
}
"
)
tracker
=
TimetableDataChangeTracker
()
# Common data for Chronos
subjects_ref
=
import_subjects
(
validity_range
)
rooms_ref
=
import_rooms
(
validity_range
)
...
...
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