refacto os

This commit is contained in:
2024-03-22 09:42:32 +01:00
parent 0663f41f66
commit 29e1a09219
4 changed files with 122 additions and 114 deletions

View File

@@ -61,7 +61,7 @@ func GetDistributionList(db *sql.DB) ([]null.String, error) {
return list, nil
}
func GetVersionByDistributionList(db *sql.DB, d string) ([]null.String, error) {
func GetVersionsByDistributionList(db *sql.DB, d string) ([]null.String, error) {
var list []null.String
rows, err := db.Query("SELECT DISTINCT version FROM dashboard_os where distribution = ?", d)
if err != nil {