alsmanager_lib 1.0.68 → 1.0.70

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.
Files changed (2) hide show
  1. package/lib/modules.js +5 -5
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -7898,7 +7898,7 @@ function exportDBSQLSQLite(db_path, dump_path, dump_source, dump_date) {
7898
7898
  if (!dump_date) {
7899
7899
  var d = new Date();
7900
7900
  datestring = d.getFullYear() + ("0" + d.getDate()).slice(-2) + ("0"+(d.getMonth()+1)).slice(-2) +
7901
- "_" + ("0" + d.getHours()).slice(-2) + ":" + ("0" + d.getMinutes()).slice(-2);
7901
+ "_" + ("0" + d.getHours()).slice(-2) + ("0" + d.getMinutes()).slice(-2) + ("0" + d.getSeconds()).slice(-2);
7902
7902
  }
7903
7903
  else {
7904
7904
  datestring = dump_date;
@@ -7906,11 +7906,11 @@ function exportDBSQLSQLite(db_path, dump_path, dump_source, dump_date) {
7906
7906
 
7907
7907
  var path = require('path');
7908
7908
  var fileOut = path.join(dump_path, "ALSnr_" + dump_source + datestring + ".sql");
7909
- var query = ".output " + fileOut + ";";
7910
- query += ".dump;";
7911
- query += ".exit;";
7912
7909
 
7913
- let cmd = "sqlite3 " + db_path + "\"" + query + "\"";
7910
+ let cmd = "sqlite3 " + db_path + " ";
7911
+ cmd += "\"" + ".output " + fileOut + "\"";
7912
+ cmd += " \"" + ".dump" + "\"";
7913
+ cmd += " \"" + ".quit" + "\"";
7914
7914
 
7915
7915
  const exec = require('child_process').exec;
7916
7916
  const child = exec(cmd,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alsmanager_lib",
3
- "version": "1.0.68",
3
+ "version": "1.0.70",
4
4
  "description": "Funzioni per ALSManager",
5
5
  "license": "ISC",
6
6
  "author": "Luca Cattani",