diff --git a/celerybeat-schedule b/celerybeat-schedule index bccb29106..12caa11af 100644 Binary files a/celerybeat-schedule and b/celerybeat-schedule differ diff --git a/uber/models/mits.py b/uber/models/mits.py index 67b3f7fe6..a1d0d7932 100644 --- a/uber/models/mits.py +++ b/uber/models/mits.py @@ -223,10 +223,12 @@ def guidebook_images(self): header = self.guidebook_header thumbnail = self.guidebook_thumbnail - prepend = sluggify(self.name) + '_' - return [prepend + header.filename, prepend + thumbnail.filename], [header, thumbnail] + header_name = (prepend + header.filename) if header else '' + thumbnail_name = (prepend + thumbnail.filename) if thumbnail else '' + + return [header_name, thumbnail_name], [header, thumbnail] class MITSPicture(MagModel): diff --git a/uber/models/mivs.py b/uber/models/mivs.py index a080e173f..8198380b4 100644 --- a/uber/models/mivs.py +++ b/uber/models/mivs.py @@ -515,7 +515,10 @@ def guidebook_images(self): thumbnail = self.guidebook_thumbnail prepend = sluggify(self.title) + '_' - return [prepend + header.filename, prepend + thumbnail.filename], [header, thumbnail] + header_name = (prepend + header.filename) if header else '' + thumbnail_name = (prepend + thumbnail.filename) if thumbnail else '' + + return [header_name, thumbnail_name], [header, thumbnail] class IndieGameImage(MagModel):