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
bfcc6f33
Verified
Commit
bfcc6f33
authored
3 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Get validity ranges by Untis ID and the corresponding school term
parent
a9b3c2d6
No related branches found
No related tags found
Loading
Pipeline
#24468
passed
3 years ago
Stage: test
Stage: build
Stage: publish
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.rst
+5
-0
5 additions, 0 deletions
CHANGELOG.rst
aleksis/apps/untis/util/mysql/importers/terms.py
+3
-1
3 additions, 1 deletion
aleksis/apps/untis/util/mysql/importers/terms.py
with
8 additions
and
1 deletion
CHANGELOG.rst
+
5
−
0
View file @
bfcc6f33
...
@@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_.
...
@@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_.
Unreleased
Unreleased
----------
----------
Fixed
~~~~~
* Get validity ranges by Untis ID and the corresponding school term.
Changed
Changed
~~~~~~~
~~~~~~~
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/untis/util/mysql/importers/terms.py
+
3
−
1
View file @
bfcc6f33
...
@@ -104,7 +104,9 @@ def import_terms(qs: Optional[QuerySet] = None,) -> Dict[int, chronos_models.Val
...
@@ -104,7 +104,9 @@ def import_terms(qs: Optional[QuerySet] = None,) -> Dict[int, chronos_models.Val
school_term
.
save
()
school_term
.
save
()
try
:
try
:
validity_range
=
chronos_models
.
ValidityRange
.
objects
.
get
(
import_ref_untis
=
term_id
)
validity_range
=
chronos_models
.
ValidityRange
.
objects
.
get
(
import_ref_untis
=
term_id
,
school_term
=
school_term
)
logger
.
info
(
"
Validity range found by import reference.
"
)
logger
.
info
(
"
Validity range found by import reference.
"
)
except
chronos_models
.
ValidityRange
.
DoesNotExist
:
except
chronos_models
.
ValidityRange
.
DoesNotExist
:
try
:
try
:
...
...
This diff is collapsed.
Click to expand it.
Jonathan Weth
@hansegucker
mentioned in commit
1966bb04
·
3 years ago
mentioned in commit
1966bb04
mentioned in commit 1966bb048a555cb11ba1980b428f61af2866c0ce
Toggle commit list
Jonathan Weth
@hansegucker
mentioned in merge request
!82 (merged)
·
3 years ago
mentioned in merge request
!82 (merged)
mentioned in merge request !82
Toggle commit list
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