Skip to content
GitLab
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
c2ef172b
Commit
c2ef172b
authored
Feb 17, 2020
by
Guilhem Saurel
Browse files
delete obsolete images
parent
210d6996
Pipeline
#8408
failed with stage
in 2 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/management/commands/update.py
View file @
c2ef172b
...
...
@@ -53,6 +53,9 @@ class Command(BaseCommand):
log
(
f
'
\n
Delete perso
\n
'
)
call_command
(
'delete_perso'
)
log
(
f
'
\n
clean obsolete Images
\n
'
)
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
)):
log
(
f
'
{
img
}
'
)
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment