Skip to content

Commit

Permalink
blank wo field fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmajh committed Aug 2, 2024
1 parent 1f75f3e commit 83b932f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/bin/db_drift.dart
Original file line number Diff line number Diff line change
Expand Up @@ -947,14 +947,15 @@ class MyDatabase extends _$MyDatabase {
description:
row['description'] ?? 'WO has NO description in Maximo',
downtime: row['iko_downtime'],
siteid: row['siteid'],
siteid: row['siteid'] ?? 'WO has No siteid in Maximo',
status: row['status'],
type: row['worktype'],
reportdate: row['reportdate'],
assetnum: row['assetnum'],
type: row['worktype'] ?? 'WO has No worktype in Maximo',
reportdate: row['reportdate'] ?? '1900-01-01',
assetnum: row['assetnum'] ?? 'WO has No assetnum in Maximo',
recordType: Value(row['recordType']),
details: Value(
row['details'].toString().replaceAll(RegExp(r'<[^>]+>'), '')),
details: Value((row['details'] ?? 'WO has NO details in Maximo')
.toString()
.replaceAll(RegExp(r'<[^>]+>'), '')),
),
);
}
Expand Down

0 comments on commit 83b932f

Please sign in to comment.