Skip to content

Commit 91f7e98

Browse files
committed
make f string compatiable with older versions
1 parent d1e9e46 commit 91f7e98

File tree

1 file changed

+1
-1
lines changed
  • sorl_thumbnail_avif/thumbnail

1 file changed

+1
-1
lines changed

sorl_thumbnail_avif/thumbnail/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ def _get_format(self, source):
3737
def _get_thumbnail_filename(self, source, geometry_string, options):
3838
key = tokey(source.key, geometry_string, serialize(options))
3939
path = f"{key[:2]}{key[2:4]}{key}"
40-
return f"{settings.THUMBNAIL_PREFIX}{path}.{EXTENSIONS[options["format"]]}"
40+
return f"{settings.THUMBNAIL_PREFIX}{path}.{EXTENSIONS[options['format']]}"

0 commit comments

Comments
 (0)