|
|
@@ -378,7 +378,7 @@ func GetUnDecompressAttachments() ([]*Attachment, error) { |
|
|
|
|
|
|
|
func getUnDecompressAttachments(e Engine) ([]*Attachment, error) { |
|
|
|
attachments := make([]*Attachment, 0, 10) |
|
|
|
return attachments, e.Where("decompress_state = ? and dataset_id != 0 and attachment.type = ? and (name like '%.zip' or name like '%.tar.gz')", DecompressStateInit, TypeCloudBrainOne).Find(&attachments) |
|
|
|
return attachments, e.Where("decompress_state = ? and dataset_id != 0 and attachment.type = ? and (name like '%.zip' or name like '%.tar.gz' or name like '%.tgz')", DecompressStateInit, TypeCloudBrainOne).Find(&attachments) |
|
|
|
} |
|
|
|
|
|
|
|
func GetAllPublicAttachments() ([]*AttachmentUsername, error) { |
|
|
|