Commit 6aee0735 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

oops

parent a6688d8b
Pipeline #2768 passed with stages
in 1 minute and 7 seconds
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment