From 52e422604a3bd1327285e2eec7041f571f2e5faa Mon Sep 17 00:00:00 2001 From: TonyJabbour Date: Wed, 29 Sep 2021 16:17:08 +0200 Subject: [PATCH] Fix webhook --- var/www/Flask_server.py | 2 +- var/www/modules/hunter/templates/edit_tracker.html | 2 +- var/www/modules/hunter/templates/showTracker.html | 4 ++-- .../hunter/templates/trackersManagement.html | 13 +------------ 4 files changed, 5 insertions(+), 16 deletions(-) diff --git a/var/www/Flask_server.py b/var/www/Flask_server.py index 32fc2823..5fa0fbfb 100755 --- a/var/www/Flask_server.py +++ b/var/www/Flask_server.py @@ -70,7 +70,7 @@ r_cache = config_loader.get_redis_conn("Redis_Cache") # logs log_dir = os.path.join(os.environ['AIL_HOME'], 'logs') if not os.path.isdir(log_dir): - os.makedirs(logs_dir) + os.makedirs(log_dir) # log_filename = os.path.join(log_dir, 'flask_server.logs') # logger = logging.getLogger() diff --git a/var/www/modules/hunter/templates/edit_tracker.html b/var/www/modules/hunter/templates/edit_tracker.html index b6067ecb..b7ab281b 100644 --- a/var/www/modules/hunter/templates/edit_tracker.html +++ b/var/www/modules/hunter/templates/edit_tracker.html @@ -31,7 +31,7 @@
-
Edit a Tracker
+
{%if dict_tracker%}Edit a{%else%}Create a new{%endif%} Tracker
diff --git a/var/www/modules/hunter/templates/showTracker.html b/var/www/modules/hunter/templates/showTracker.html index d16fcc48..90cdca7b 100644 --- a/var/www/modules/hunter/templates/showTracker.html +++ b/var/www/modules/hunter/templates/showTracker.html @@ -111,8 +111,8 @@ {% for mail in tracker_metadata['mails'] %} - {{ mail }}
- {% endfor %} + {{ mail }}
+ {% endfor %} diff --git a/var/www/modules/hunter/templates/trackersManagement.html b/var/www/modules/hunter/templates/trackersManagement.html index dc9a2545..aedc790d 100644 --- a/var/www/modules/hunter/templates/trackersManagement.html +++ b/var/www/modules/hunter/templates/trackersManagement.html @@ -58,7 +58,6 @@ Tracker First seen Last seen - Webhook URL Email notification sparkline @@ -99,11 +98,6 @@ {{ dict_uuid['last_seen'][6:8] }} {% endif %} - - {% if dict_uuid['webhook'] %} - {{ dict_uuid['webhook'] }} - {% endif %} - {% for mail in dict_uuid['mails'] %} {{ mail }}
@@ -129,7 +123,6 @@ Tracker First seen Last seen - Webhook URL Email notification sparkline @@ -170,11 +163,7 @@ {{ dict_uuid['last_seen'][6:8] }} {% endif %} - - {% if dict_uuid['webhook'] %} - {{ dict_uuid['webhook'] }} - {% endif %} - + {% for mail in dict_uuid['mails'] %} {{ mail }}