(eid int64, extractFolder string)
| 1112 | } |
| 1113 | |
| 1114 | func (s *SkillLibraryService) buildSkillInstallPath(eid int64, extractFolder string) string { |
| 1115 | root := s.skillRootPath |
| 1116 | if strings.TrimSpace(root) == "" { |
| 1117 | root = filepath.Join("data", "skills") |
| 1118 | } |
| 1119 | if eid == 0 { |
| 1120 | return filepath.Join(root, "global", extractFolder) |
| 1121 | } |
| 1122 | return filepath.Join(root, "tenants", strconv.FormatInt(eid, 10), extractFolder) |
| 1123 | } |
| 1124 | |
| 1125 | func clampScore(v float64) float64 { |
| 1126 | if v < 1 { |
no outgoing calls
no test coverage detected