diff --git a/DLPrototype/CoreData/Data.xcdatamodeld/Note.xcdatamodel/contents b/DLPrototype/CoreData/Data.xcdatamodeld/Note.xcdatamodel/contents index 80550be3..a2586d01 100644 --- a/DLPrototype/CoreData/Data.xcdatamodeld/Note.xcdatamodel/contents +++ b/DLPrototype/CoreData/Data.xcdatamodeld/Note.xcdatamodel/contents @@ -19,14 +19,12 @@ - - diff --git a/DLPrototype/Views/Find/Results/Results.swift b/DLPrototype/Views/Find/Results/Results.swift index eee17ba3..68da1cf6 100644 --- a/DLPrototype/Views/Find/Results/Results.swift +++ b/DLPrototype/Views/Find/Results/Results.swift @@ -63,7 +63,7 @@ struct Results: View { // all attempts to refactor this failed // fetch all records matching $text let rr: NSFetchRequest = LogRecord.fetchRequest() - rr.predicate = NSPredicate(format: "message CONTAINS[c] %@ AND alive = true", text.wrappedValue) + rr.predicate = NSPredicate(format: "message CONTAINS[c] %@", text.wrappedValue) rr.sortDescriptors = [ NSSortDescriptor(keyPath: \LogRecord.timestamp, ascending: false) ] @@ -79,7 +79,7 @@ struct Results: View { // fetch all tasks matching $text let tr: NSFetchRequest = LogTask.fetchRequest() - tr.predicate = NSPredicate(format: "content CONTAINS[c] %@ AND alive = true", text.wrappedValue) + tr.predicate = NSPredicate(format: "content CONTAINS[c] %@", text.wrappedValue) tr.sortDescriptors = [ NSSortDescriptor(keyPath: \LogTask.created, ascending: false) ]