|
|
|
@@ -190,6 +190,7 @@ type SearchDatasetOptions struct { |
|
|
|
JustNeedZipFile bool |
|
|
|
NeedAttachment bool |
|
|
|
UploadAttachmentByMe bool |
|
|
|
QueryReference bool |
|
|
|
} |
|
|
|
|
|
|
|
func CreateDataset(dataset *Dataset) (err error) { |
|
|
|
@@ -260,7 +261,7 @@ func SearchDatasetCondition(opts *SearchDatasetOptions) builder.Cond { |
|
|
|
} |
|
|
|
} |
|
|
|
if len(opts.DatasetIDs) > 0 { |
|
|
|
if opts.StarByMe { |
|
|
|
if opts.StarByMe || (opts.RepoID == 0 && opts.QueryReference) { |
|
|
|
cond = cond.And(builder.In("dataset.id", opts.DatasetIDs)) |
|
|
|
} else { |
|
|
|
subCon := builder.NewCond() |
|
|
|
|