Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
8952fa67
Commit
8952fa67
authored
2 years ago
by
jan.bednarik
Browse files
Options
Downloads
Patches
Plain Diff
redmine: Fix command
parent
3612dd9a
No related branches found
No related tags found
2 merge requests
!527
redmine: Fix command
,
!526
redmine: Fix command
Pipeline
#8260
passed
2 years ago
Stage: build
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
redmine_utils/management/commands/update_redmine_issues.py
+3
-5
3 additions, 5 deletions
redmine_utils/management/commands/update_redmine_issues.py
with
3 additions
and
5 deletions
redmine_utils/management/commands/update_redmine_issues.py
+
3
−
5
View file @
8952fa67
...
@@ -11,12 +11,10 @@ class Command(BaseCommand):
...
@@ -11,12 +11,10 @@ class Command(BaseCommand):
`redmine_program_block` - ten má IntegerBlock `redmine_issue`. Podle něj
`redmine_program_block` - ten má IntegerBlock `redmine_issue`. Podle něj
pak stahujeme data z Redmine.
pak stahujeme data z Redmine.
"""
"""
updated_models
=
DistrictProgramPage
self
.
stdout
.
write
(
"
Updating Redmine issues...
"
)
self
.
stdout
.
write
(
"
Updating Redmine issues...
"
)
for
model
in
updated_models
:
for
page
in
DistrictProgramPage
.
objects
.
all
():
for
page
in
model
.
objects
.
all
():
fill_data_from_redmine_for_page
(
page
)
fill_data_from_redmine_for_page
(
page
)
page
.
save
()
page
.
save
()
self
.
stdout
.
write
(
"
\n
Updating Redmine issues finished
"
)
self
.
stdout
.
write
(
"
\n
Updating Redmine issues finished
"
)
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