Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Commits
4c948d37
Commit
4c948d37
authored
4 years ago
by
Erwan Rouchet
Browse files
Options
Downloads
Plain Diff
Merge branch 'duplicated-process' into 'master'
Avoid duplicated processes when filtering with unscheduled Closes
#505
See merge request
!1039
parents
65a8e932
9c0aa4a0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1039
Avoid duplicated processes when filtering with unscheduled
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex/dataimport/api.py
+1
-1
1 addition, 1 deletion
arkindex/dataimport/api.py
with
1 addition
and
1 deletion
arkindex/dataimport/api.py
+
1
−
1
View file @
4c948d37
...
...
@@ -167,7 +167,7 @@ class DataImportsList(CorpusACLMixin, ListAPIView):
if
state
==
State
.
Unscheduled
:
# Handle a workflow with no task as unscheduled
state_query
|=
Q
(
workflow__tasks__isnull
=
True
)
qs
=
qs
.
filter
(
state_query
).
exclude
(
id__in
=
excluded_imports
.
values
(
'
id
'
))
qs
=
qs
.
filter
(
state_query
).
exclude
(
id__in
=
excluded_imports
.
values
(
'
id
'
))
.
distinct
()
return
qs
.
order_by
(
'
-last_task
'
)
...
...
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