From d08e08f913bf310ba93d6e48c15cc174e27602eb Mon Sep 17 00:00:00 2001 From: Pavol Bielik Date: Mon, 26 Jan 2015 12:48:28 +0100 Subject: [PATCH] minor update --- bin/js_features.js | 4 +++- extract_features.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/js_features.js b/bin/js_features.js index c6a4ba07..26f13da7 100755 --- a/bin/js_features.js +++ b/bin/js_features.js @@ -138,7 +138,9 @@ function processFile(file) { } if (ARGS.extract_features) { - console.log(output); + if (removeWhitespace(output) != '{"query":[],"assign":[]}') { + console.log(output); + } } else if (ARGS.rename){ callServer( HOST, diff --git a/extract_features.py b/extract_features.py index f78a58cd..6862b58f 100755 --- a/extract_features.py +++ b/extract_features.py @@ -26,7 +26,7 @@ TMP_DIR = "" def ExtractFeaturesForFile(f): global TMP_DIR - os.system("nodejs bin/js_features.js --skip_minified '%s' >> %s/%d" % (f, TMP_DIR, os.getpid())) + os.system("nodejs bin/js_features.js --extract_features --skip_minified '%s' >> %s/%d" % (f, TMP_DIR, os.getpid())) def ExtractFeaturesForFileList(files): global TMP_DIR