mirror of
https://github.com/hrfee/jfa-go.git
synced 2025-01-05 16:00:10 +00:00
remove debug printfs
This commit is contained in:
parent
3fbbc7f620
commit
3c799b8783
2
api.go
2
api.go
@ -1048,7 +1048,6 @@ func (app *appContext) ApplySettings(gc *gin.Context) {
|
|||||||
"homescreen": map[string]string{},
|
"homescreen": map[string]string{},
|
||||||
}
|
}
|
||||||
for _, id := range req.ApplyTo {
|
for _, id := range req.ApplyTo {
|
||||||
fmt.Printf("%+v\n", policy)
|
|
||||||
status, err := app.jf.SetPolicy(id, policy)
|
status, err := app.jf.SetPolicy(id, policy)
|
||||||
if !(status == 200 || status == 204) || err != nil {
|
if !(status == 200 || status == 204) || err != nil {
|
||||||
errors["policy"][id] = fmt.Sprintf("%d: %s", status, err)
|
errors["policy"][id] = fmt.Sprintf("%d: %s", status, err)
|
||||||
@ -1224,7 +1223,6 @@ func (app *appContext) Logout(gc *gin.Context) {
|
|||||||
func (app *appContext) GetLanguages(gc *gin.Context) {
|
func (app *appContext) GetLanguages(gc *gin.Context) {
|
||||||
resp := langDTO{}
|
resp := langDTO{}
|
||||||
for key, lang := range app.storage.lang.Form {
|
for key, lang := range app.storage.lang.Form {
|
||||||
fmt.Printf("%+v\n", lang["meta"])
|
|
||||||
resp[key] = lang["meta"].(map[string]interface{})["name"].(string)
|
resp[key] = lang["meta"].(map[string]interface{})["name"].(string)
|
||||||
}
|
}
|
||||||
if len(resp) == 0 {
|
if len(resp) == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user