mirror of
https://github.com/etesync/server
synced 2024-11-26 02:38:15 +00:00
Chunk: fix for a collection's main item.
This commit is contained in:
parent
3db204e4bb
commit
6dfa2360c0
@ -64,7 +64,8 @@ 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
|
||||||
return Path('user_{}'.format(user_id), col.uid, item.uid, instance.uid)
|
item_uid = item.uid or 'main'
|
||||||
|
return Path('user_{}'.format(user_id), col.uid, item_uid, instance.uid)
|
||||||
|
|
||||||
|
|
||||||
class CollectionItemChunk(models.Model):
|
class CollectionItemChunk(models.Model):
|
||||||
|
Loading…
Reference in New Issue
Block a user