diff --git a/attribute/attribute.go b/attribute/attribute.go index 6607f3a..a322bd0 100644 --- a/attribute/attribute.go +++ b/attribute/attribute.go @@ -34,6 +34,10 @@ func Init() error { } func Add(Key, Description, Default string) error { + result := store.DB.Exec(`select "value" from "attributes" where "key" = ?`, Key) + if result.RowsAffected != 0 { + return nil + } a := &Attribute{ Key: Key, Description: Description,