From 909c4f9472b1c2e285f7779cc47be39ed557423e Mon Sep 17 00:00:00 2001 From: Mokaddem Date: Tue, 14 Feb 2017 09:40:04 +0100 Subject: [PATCH 1/2] Updated feeding AIL with pystemon --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index df1b8218..1e4c7b6d 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ Here are the steps to setup pystemon and feed data to AIL: 3. Launch pystemon ``` ./pystemon ``` -4. Edit the file ```bin/feeder/pystemon-feeder.py``` and modify the pystemonpath path accordingly +4. Edit your configuration file ```bin/packages/config.cfg``` and modify the pystemonpath path accordingly 5. Launch pystemon-feeder ``` ./pystemon-feeder.py ``` From d4da3a316f18f36f9c61e7c0a5cc601898fa489a Mon Sep 17 00:00:00 2001 From: Mokaddem Date: Tue, 14 Feb 2017 10:59:47 +0100 Subject: [PATCH 2/2] Added path of the paste in the log of Categ.py --- bin/Categ.py | 4 ++-- var/www/static/js/indexjavascript.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/Categ.py b/bin/Categ.py index 9449e87c..be0dff17 100755 --- a/bin/Categ.py +++ b/bin/Categ.py @@ -96,6 +96,6 @@ if __name__ == "__main__": p.populate_set_out(msg, categ) publisher.info( - 'Categ;{};{};{};Detected {} as {}'.format( + 'Categ;{};{};{};Detected {} as {};{}'.format( paste.p_source, paste.p_date, paste.p_name, - len(found), categ)) + len(found), categ), paste.p_path) diff --git a/var/www/static/js/indexjavascript.js b/var/www/static/js/indexjavascript.js index b85f62b0..5f97ab41 100644 --- a/var/www/static/js/indexjavascript.js +++ b/var/www/static/js/indexjavascript.js @@ -213,7 +213,7 @@ function create_log_table(obj_json) { source_link = document.createElement("A"); if (parsedmess[1] == "slexy.org"){ - soruce_url = "http://"+parsedmess[1]+"/view/"+parsedmess[3].split(".")[0]; + source_url = "http://"+parsedmess[1]+"/view/"+parsedmess[3].split(".")[0]; } else{ source_url = "http://"+parsedmess[1]+"/"+parsedmess[3].split(".")[0];