slack importer: Add comment on size information of avatars.

The size information of an avatar is not required during the import.
Check function 'import_uploads_local' and 'import_uploads_s3'
in 'export.py' for this.
This commit is contained in:
Rhea Parekh 2018-04-17 02:42:15 +05:30 committed by Tim Abbott
parent 636390104a
commit a2070fb7e5
1 changed files with 3 additions and 0 deletions

View File

@ -981,6 +981,9 @@ def process_avatars(avatar_list: List[ZerverFieldsT], avatar_dir: str,
avatar_upload_list.append([slack_avatar_url, image_path, original_image_path])
# We don't add the size field here in avatar's records.json,
# since the metadata is not needed on the import end, and we
# don't have it until we've downloaded the files anyway.
avatar['path'] = image_path
avatar['s3_path'] = image_path