Log error when ad click fails

This commit is contained in:
2020-05-23 13:44:56 +02:00
parent 825931dca9
commit a6c7999448
3 changed files with 4 additions and 6 deletions

View File

@@ -4,7 +4,6 @@ import (
"fmt"
"html/template"
"net/http"
"strings"
"fornaxian.com/pixeldrain-web/pixelapi"
"github.com/Fornaxian/log"
@@ -65,9 +64,6 @@ func (wc *WebController) adminGlobalsForm(td *TemplateData, r *http.Request) (f
if f.ReadInput(r) {
var successfulUpdates = 0
for k, v := range f.Fields {
// Remove carriage returns from input
v.EnteredValue = strings.ReplaceAll(v.EnteredValue, "\r", "")
if v.EnteredValue == globalsMap[v.Name] {
continue // Change changes, no need to update
}