Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
3b171d7d
Commit
3b171d7d
authored
Apr 13, 2020
by
Guilhem Saurel
Browse files
update: look only for active targets
parent
c6340e33
Pipeline
#9021
passed with stage
in 1 minute and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/management/commands/update.py
View file @
3b171d7d
...
...
@@ -57,5 +57,5 @@ class Command(BaseCommand):
Image
.
objects
.
filter
(
robotpkg__project__archived
=
True
).
delete
()
log
(
f
'
\n
Look for missing images
\n
'
)
for
img
in
Image
.
objects
.
filter
(
created__lt
=
timezone
.
now
()
-
timedelta
(
days
=
7
)):
for
img
in
Image
.
objects
.
filter
(
created__lt
=
timezone
.
now
()
-
timedelta
(
days
=
7
)
,
target__active
=
True
):
log
(
f
'
{
img
}
'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment