From d4da3a316f18f36f9c61e7c0a5cc601898fa489a Mon Sep 17 00:00:00 2001 From: Mokaddem Date: Tue, 14 Feb 2017 10:59:47 +0100 Subject: [PATCH] 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];