Skip to content

Commit 01c8a55

Browse files
mihowCopilot
andauthored
Update ami/main/models.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 053ca8b commit 01c8a55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ami/main/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ def validate_filename_timestamp(filename: str) -> None:
12421242
# Ensure filename has a timestamp
12431243
timestamp = ami.utils.dates.get_image_timestamp_from_filename(filename)
12441244
if not timestamp:
1245-
raise ValidationError("Image filename does not contain a valid timestamp (e.g. YYMMDDHHMMSS-snapshot.jpg).")
1245+
raise ValidationError("Image filename does not contain a valid timestamp (e.g. YYYYMMDDHHMMSS-snapshot.jpg).")
12461246

12471247

12481248
def create_source_image_from_upload(image: ImageFieldFile, deployment: Deployment, request=None) -> "SourceImage":

0 commit comments

Comments
 (0)