update
parent
2de0509b26
commit
fee62350bd
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue