1
0
mirror of https://github.com/etesync/server synced 2024-12-29 10:48:07 +00:00

Chunk upload: item.uid can never be None so use it directly.

This commit is contained in:
Tom Hacohen 2020-07-10 09:09:11 +03:00
parent e8e859fa6a
commit 86c5d711a6

View File

@ -82,8 +82,7 @@ def chunk_directory_path(instance, filename):
item = instance.item item = instance.item
col = item.collection col = item.collection
user_id = col.owner.id user_id = col.owner.id
item_uid = item.uid or 'main' return Path('user_{}'.format(user_id), col.uid, item.uid, instance.uid)
return Path('user_{}'.format(user_id), col.uid, item_uid, instance.uid)
class CollectionItemChunk(models.Model): class CollectionItemChunk(models.Model):