dylanebert HF staff commited on
Commit
d75e68f
·
1 Parent(s): 7d88b7e

infer added

Browse files
Files changed (1) hide show
  1. viewer/src/routes/bridge.ts +3 -0
viewer/src/routes/bridge.ts CHANGED
@@ -165,6 +165,9 @@ export const inferFields = async (row: Row): Promise<Row | null> => {
165
  if (license) {
166
  row.License = license;
167
  }
 
 
 
168
  statusMessage.append(`<br><span style="color: green;">Finished inferring fields for <b>${row.Name}</b></span>`);
169
  return row;
170
  };
 
165
  if (license) {
166
  row.License = license;
167
  }
168
+ if (!row.Added) {
169
+ row.Added = new Date().toISOString();
170
+ }
171
  statusMessage.append(`<br><span style="color: green;">Finished inferring fields for <b>${row.Name}</b></span>`);
172
  return row;
173
  };