Skip to content

Commit

Permalink
Don't mark MIVS header/thumbnails as screenshots
Browse files Browse the repository at this point in the history
This should help prevent them from getting exported in the accepted games ZIP.
  • Loading branch information
kitsuta committed Dec 23, 2024
1 parent 4aa7b6f commit 38c1a03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uber/site_sections/mivs.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def show_info(self, session, id, message='', **params):
if not message:
header_pic = add_new_image(header_image, game)
header_pic.is_header = True
header_pic.is_screenshot = False
if not check_image_size(header_pic.filepath, c.GUIDEBOOK_HEADER_SIZE):
message = f"Your header image must be {format_image_size(c.GUIDEBOOK_HEADER_SIZE)}."
elif not game.guidebook_header:
Expand All @@ -296,6 +297,7 @@ def show_info(self, session, id, message='', **params):
if not message:
thumbnail_pic = add_new_image(thumbnail_image, game)
thumbnail_pic.is_thumbnail = True
thumbnail_pic.is_screenshot = False
if not check_image_size(thumbnail_pic.filepath, c.GUIDEBOOK_THUMBNAIL_SIZE):
message = f"Your thumbnail image must be {format_image_size(c.GUIDEBOOK_THUMBNAIL_SIZE)}."
elif not game.guidebook_thumbnail:
Expand Down

0 comments on commit 38c1a03

Please sign in to comment.