This commit is contained in:
Martin Pander
2024-06-04 16:45:57 +02:00
parent 9aa7b04b98
commit 0572763e31
6 changed files with 38 additions and 18 deletions

View File

@ -186,9 +186,15 @@ func (t *Task) GetString(fieldWFormat string) string {
return t.Recur
default:
slog.Error(fmt.Sprintf("Field not implemented: %s", field))
return ""
if val, ok := t.Udas[field]; ok {
if strVal, ok := val.(string); ok {
return strVal
}
}
}
slog.Error(fmt.Sprintf("Field not implemented: %s", field))
return ""
}
func (t *Task) GetDate(dateString string) time.Time {