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
6aee0735
Commit
6aee0735
authored
Feb 11, 2019
by
Guilhem Saurel
Browse files
oops
parent
a6688d8b
Pipeline
#2768
passed with stages
in 1 minute and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
6aee0735
...
...
@@ -820,7 +820,7 @@ class Image(models.Model):
self
.
image
=
r
.
json
()[
'fsLayers'
][
0
][
'blobSum'
].
split
(
':'
)[
1
][:
12
]
self
.
created
=
parse_datetime
(
json
.
loads
(
r
.
json
()[
'history'
][
0
][
'v1Compatibility'
])[
'created'
])
self
.
save
()
if
not
self
.
allow_failure
and
(
timezone
.
now
()
-
self
.
created
).
days
>
7
:
if
not
self
.
allow_failure
and
self
.
created
and
(
timezone
.
now
()
-
self
.
created
).
days
>
7
:
self
.
allow_failure
=
True
self
.
save
()
...
...
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