Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Untis
Manage
Activity
Members
Labels
Plan
Issues
12
Issue boards
Milestones
Wiki
Code
Merge requests
9
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
!100
Resolve "move_dates_for_testing throws misleading errors"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "move_dates_for_testing throws misleading errors"
33-move_dates_for_testing-throws-misleading-errors
into
master
Overview
0
Commits
2
Pipelines
2
Changes
2
Merged
Jonathan Weth
requested to merge
33-move_dates_for_testing-throws-misleading-errors
into
master
3 years ago
Overview
0
Commits
2
Pipelines
2
Changes
2
Expand
Closes
#33 (closed)
Edited
3 years ago
by
Jonathan Weth
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
f4e7efcf
2 commits,
3 years ago
2 files
+
4
−
2
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/management/commands/move_dates_for_testing.py
+
3
−
2
Options
@@ -65,7 +65,7 @@ class Command(BaseCommand):
school_terms
=
SchoolTerm
.
objects
.
order_by
(
"
-date_end
"
)
if
not
school_terms
.
exists
():
raise
RuntimeError
(
"
No
validity range
available.
"
)
raise
RuntimeError
(
"
No
school term
available.
"
)
school_term
=
school_terms
.
first
()
self
.
stdout
.
write
(
f
"
Used school term:
{
school_term
}
"
)
@@ -90,7 +90,8 @@ class Command(BaseCommand):
)
if
not
self
.
weeks
:
raise
RuntimeError
(
"
You need at least one validity range to move data.
"
)
self
.
stdout
.
write
(
self
.
style
.
ERROR
(
"
There are no data that have to be moved.
"
))
return
self
.
translate_week_year
(
"
SUBSTITUTIONS
"
,
Loading