|
|
@ -32,7 +32,7 @@ func GetLabel(ctx *context.APIContext) { |
|
|
|
label *models.Label |
|
|
|
label *models.Label |
|
|
|
err error |
|
|
|
err error |
|
|
|
) |
|
|
|
) |
|
|
|
strID := ctx.ParamsInt64(":id") |
|
|
|
strID := ctx.Params(":id") |
|
|
|
if intID, err2 := strconv.ParseInt(strID, 10, 64); err2 != nil { |
|
|
|
if intID, err2 := strconv.ParseInt(strID, 10, 64); err2 != nil { |
|
|
|
label, err = models.GetLabelOfRepoByName(ctx.Repo.Repository.ID, strID) |
|
|
|
label, err = models.GetLabelOfRepoByName(ctx.Repo.Repository.ID, strID) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|