|
|
@@ -59,6 +59,11 @@ func IsDatasetStaringByRepoId(userID, repoID int64) bool { |
|
|
|
return isDatasetStaring(x, userID, dataset.ID) |
|
|
|
} |
|
|
|
|
|
|
|
func IsDatasetStaring(userID, datasetID int64) bool { |
|
|
|
return isDatasetStaring(x, userID, datasetID) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
func isDatasetStaring(e Engine, userID, datasetID int64) bool { |
|
|
|
has, _ := e.Get(&DatasetStar{0, userID, datasetID, 0}) |
|
|
|
return has |
|
|
|