@@ -113,7 +113,7 @@ Info getInfo(Params params)
113113 CodaCell(" JSON" , info.toJSON(true ).toPrettyString(JSONOptions.doNotEscapeSlashes))
114114 ]);
115115
116- coda.updateOrInsertRow (docId, hostTableId, hostValues);
116+ coda.upsertRow (docId, hostTableId, hostValues);
117117
118118 auto cpuValues = RowValues([
119119 CodaCell(" Host Name" , info.softwareInfo.hostname),
@@ -122,7 +122,7 @@ Info getInfo(Params params)
122122 CodaCell(" Architecture" , info.hardwareInfo.processorInfo.architectureInfo.architecture),
123123 CodaCell(" Flags" , info.hardwareInfo.processorInfo.architectureInfo.flags),
124124 ]);
125- coda.updateOrInsertRow (docId, cpuTableId, cpuValues);
125+ coda.upsertRow (docId, cpuTableId, cpuValues);
126126
127127 auto memoryValues = RowValues([
128128 CodaCell(" Host Name" , info.softwareInfo.hostname),
@@ -134,7 +134,7 @@ Info getInfo(Params params)
134134 CodaCell(" Total" , info.hardwareInfo.memoryInfo.total),
135135 CodaCell(" Speed" , info.hardwareInfo.memoryInfo.speed),
136136 ]);
137- coda.updateOrInsertRow (docId, memoryTableId, memoryValues);
137+ coda.upsertRow (docId, memoryTableId, memoryValues);
138138
139139 auto motherboardValues = RowValues([
140140 CodaCell(" Host Name" , info.softwareInfo.hostname),
@@ -147,15 +147,15 @@ Info getInfo(Params params)
147147 CodaCell(" BIOS Release" , info.hardwareInfo.motherboardInfo.biosInfo.release),
148148 CodaCell(" BIOS Date" , info.hardwareInfo.motherboardInfo.biosInfo.date)
149149 ]);
150- coda.updateOrInsertRow (docId, motherboardTableId, motherboardValues);
150+ coda.upsertRow (docId, motherboardTableId, motherboardValues);
151151
152152 auto gpuValues = RowValues([
153153 CodaCell(" Host Name" , info.softwareInfo.hostname),
154154 CodaCell(" Vendor" , info.hardwareInfo.graphicsProcessorInfo.vendor),
155155 CodaCell(" Model" , info.hardwareInfo.graphicsProcessorInfo.model),
156156 CodaCell(" VRam" , info.hardwareInfo.graphicsProcessorInfo.vram)
157157 ]);
158- coda.updateOrInsertRow (docId, gpuTableId, gpuValues);
158+ coda.upsertRow (docId, gpuTableId, gpuValues);
159159
160160 auto osValues = RowValues([
161161 CodaCell(" Host Name" , info.softwareInfo.hostname),
@@ -164,15 +164,15 @@ Info getInfo(Params params)
164164 CodaCell(" Kernel" , info.softwareInfo.operatingSystemInfo.kernel),
165165 CodaCell(" Kernel Version" , info.softwareInfo.operatingSystemInfo.kernelVersion)
166166 ]);
167- coda.updateOrInsertRow (docId, osTableId, osValues);
167+ coda.upsertRow (docId, osTableId, osValues);
168168
169169 auto storageValues = RowValues([
170170 CodaCell(" Host Name" , info.softwareInfo.hostname),
171171 CodaCell(" Count" , info.hardwareInfo.storageInfo.devices.length.to! string ),
172172 CodaCell(" Total" , info.hardwareInfo.storageInfo.total),
173173 CodaCell(" JSON" , info.hardwareInfo.storageInfo.toJSON(true ).toPrettyString(JSONOptions.doNotEscapeSlashes))
174174 ]);
175- coda.updateOrInsertRow (docId, storageTableId, storageValues);
175+ coda.upsertRow (docId, storageTableId, storageValues);
176176 }
177177 else
178178 writeln(" No Coda API token specified -> not uploading" );
0 commit comments