Updating unrecognised numbers in history
This commit is contained in:
parent
a42fd3eddb
commit
c1097249c3
@ -1091,7 +1091,7 @@
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 77;
|
||||
CURRENT_PROJECT_VERSION = 78;
|
||||
DEVELOPMENT_TEAM = 46DTTB8X4S;
|
||||
INFOPLIST_FILE = AutoCat/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||
@ -1116,7 +1116,7 @@
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 77;
|
||||
CURRENT_PROJECT_VERSION = 78;
|
||||
DEVELOPMENT_TEAM = 46DTTB8X4S;
|
||||
INFOPLIST_FILE = AutoCat/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||
|
||||
@ -416,7 +416,10 @@ class CheckController: UIViewController, UITableViewDelegate, UITextFieldDelegat
|
||||
if vehicleResult.vehicle.unrecognized {
|
||||
let realm = try Realm()
|
||||
if let event = eventResult.event {
|
||||
try realm.write { vehicleResult.vehicle.events.append(event) }
|
||||
try realm.write {
|
||||
vehicleResult.vehicle.events.append(event)
|
||||
vehicleResult.vehicle.updatedDate = Date().timeIntervalSince1970
|
||||
}
|
||||
}
|
||||
return .just((vehicle: vehicleResult.vehicle, errors: errors))
|
||||
} else {
|
||||
|
||||
@ -156,10 +156,10 @@ class FiltersController: FormViewController {
|
||||
}
|
||||
.onChange { self.filter.sortBy = $0.value }
|
||||
.cellUpdate { $1.value = self.filter.sortBy }
|
||||
<<< SegmentedRow<SortOrder>("SortOrder") { row in
|
||||
<<< SegmentedRow<AutoCatCore.SortOrder>("SortOrder") { row in
|
||||
row.title = NSLocalizedString("Order", comment: "sort order")
|
||||
row.value = self.filter.sortOrder
|
||||
row.options = SortOrder.allCases
|
||||
row.options = AutoCatCore.SortOrder.allCases
|
||||
}
|
||||
.onChange { self.filter.sortOrder = $0.value }
|
||||
.cellUpdate { $1.value = self.filter.sortOrder }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user