alsmanager_lib 3.0.182 → 3.0.184
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/modules.js +9 -10
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -2145,33 +2145,33 @@ function insertPCPropertiesSQLite(id_device, dev_prop) {
|
|
|
2145
2145
|
var query = "insert into device_pc (id_device, pc_name, os_platform, OS, OS_version, OS_arch, CPU, CPU_arch, RAM_GB, video_card, smartboard_ready, note, da_properties) values ";
|
|
2146
2146
|
query += "(" + id_device + ", ";
|
|
2147
2147
|
if (dev_prop.pc_name)
|
|
2148
|
-
query += "'" + dev_prop.pc_name + "',
|
|
2148
|
+
query += "'" + dev_prop.pc_name + "', ";
|
|
2149
2149
|
else
|
|
2150
|
-
query += ", ";
|
|
2150
|
+
query += "'', ";
|
|
2151
2151
|
if (dev_prop.os_platform)
|
|
2152
2152
|
query += "'" + dev_prop.os_platform + "', ";
|
|
2153
2153
|
else
|
|
2154
|
-
query += ", ";
|
|
2154
|
+
query += "'', ";
|
|
2155
2155
|
if (dev_prop.os)
|
|
2156
2156
|
query += "'" + dev_prop.os + "', ";
|
|
2157
2157
|
else
|
|
2158
|
-
query += ", ";
|
|
2158
|
+
query += "'', ";
|
|
2159
2159
|
if (dev_prop.os_version)
|
|
2160
2160
|
query += "'" + dev_prop.os_version + "', ";
|
|
2161
2161
|
else
|
|
2162
|
-
query += ", ";
|
|
2162
|
+
query += "'', ";
|
|
2163
2163
|
if (dev_prop.os_arch)
|
|
2164
2164
|
query += "'" + dev_prop.os_arch + "', ";
|
|
2165
2165
|
else
|
|
2166
|
-
query += ", ";
|
|
2166
|
+
query += "'', ";
|
|
2167
2167
|
if (dev_prop.cpu)
|
|
2168
2168
|
query += "'" + dev_prop.cpu + "', ";
|
|
2169
2169
|
else
|
|
2170
|
-
query += ", ";
|
|
2170
|
+
query += "'', ";
|
|
2171
2171
|
if (dev_prop.cpu_arch)
|
|
2172
2172
|
query += "'" + dev_prop.cpu_arch + "', ";
|
|
2173
2173
|
else
|
|
2174
|
-
query += ", ";
|
|
2174
|
+
query += "'', ";
|
|
2175
2175
|
if (dev_prop.ram_size)
|
|
2176
2176
|
query += dev_prop.ram_size + ", ";
|
|
2177
2177
|
else
|
|
@@ -2187,7 +2187,7 @@ function insertPCPropertiesSQLite(id_device, dev_prop) {
|
|
|
2187
2187
|
if (dev_prop.note)
|
|
2188
2188
|
query += "'" + dev_prop.note + "', ";
|
|
2189
2189
|
else
|
|
2190
|
-
query += ", ";
|
|
2190
|
+
query += "'', ";
|
|
2191
2191
|
if (dev_prop.da_properties)
|
|
2192
2192
|
query += dev_prop.da_properties;
|
|
2193
2193
|
else
|
|
@@ -2219,7 +2219,6 @@ function insertPCProperties(db_used, id_device, dev_prop) {
|
|
|
2219
2219
|
|
|
2220
2220
|
function updatePCPropertiesSQLite(id_device, dev_prop) {
|
|
2221
2221
|
var query = "update device_pc set ";
|
|
2222
|
-
query += "id_device = " + id_device + ", ";
|
|
2223
2222
|
if (dev_prop.pc_name)
|
|
2224
2223
|
query += "pc_name = '" + dev_prop.pc_name + "', ";
|
|
2225
2224
|
if (dev_prop.os_platform)
|