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
f517f0dc
Verified
Commit
f517f0dc
authored
3 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Let management command default to current
parent
97f3c2da
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!124
Let management command default to current
Pipeline
#53938
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
+6
-0
6 additions, 0 deletions
CHANGELOG.rst
aleksis/apps/untis/management/commands/untis_import_mysql.py
+1
-1
1 addition, 1 deletion
aleksis/apps/untis/management/commands/untis_import_mysql.py
with
7 additions
and
1 deletion
CHANGELOG.rst
+
6
−
0
View file @
f517f0dc
...
...
@@ -9,6 +9,12 @@ and this project adheres to `Semantic Versioning`_.
Unreleased
----------
Changed
~~~~~~~
* Let untis_import_mysql management command default to ``current`` instead of all
to prevent accidental imports of old plans
Fixed
~~~~~
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/untis/management/commands/untis_import_mysql.py
+
1
−
1
View file @
f517f0dc
...
...
@@ -6,7 +6,7 @@ from ...commands import COMMANDS_BY_NAME
class
Command
(
BaseCommand
):
def
add_arguments
(
self
,
parser
):
parser
.
add_argument
(
"
command
"
,
nargs
=
"
?
"
,
default
=
"
all
"
,
type
=
str
,
choices
=
list
(
COMMANDS_BY_NAME
.
keys
())
"
command
"
,
nargs
=
"
?
"
,
default
=
"
current
"
,
type
=
str
,
choices
=
list
(
COMMANDS_BY_NAME
.
keys
())
)
parser
.
add_argument
(
"
--background
"
,
...
...
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