Skip to content

Commit

Permalink
fix(validators): reset read on file to prevent fail down the line
Browse files Browse the repository at this point in the history
  • Loading branch information
ElJocho authored and matthiasschaub committed Oct 17, 2023
1 parent 19b9017 commit 4a792e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sketch_map_tool/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def validate_uploaded_sketchmaps(files: list[FileStorage]):
f"You can only upload pictures up to "
f"a total pixel count of {max_pixel_per_image}."
)
del img
file.seek(0)


def validate_uuid(uuid: str):
Expand Down

0 comments on commit 4a792e7

Please sign in to comment.