From 265471864f1ef17546ca1cbc38de395bf28ca7fd Mon Sep 17 00:00:00 2001 From: Cyberes Date: Wed, 3 Apr 2024 23:26:45 -0600 Subject: [PATCH] adjust max filename length --- exporter/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/export.py b/exporter/export.py index 6f4f508..b351546 100644 --- a/exporter/export.py +++ b/exporter/export.py @@ -79,7 +79,7 @@ async def upload_to_r2(source_file: Union[str, Path], destination_file: str, buc return await bucket.upload_fileobj(f, destination_file) -def trim_filename(filename, max_length=200): +def trim_filename(filename, max_length=230): extension = os.path.splitext(filename)[1] max_length -= len(extension) if len(filename) > max_length: