mirror of https://github.com/CIRCL/AIL-framework
Fix webhook
parent
ecc16d1004
commit
52e422604a
|
@ -70,7 +70,7 @@ r_cache = config_loader.get_redis_conn("Redis_Cache")
|
||||||
# logs
|
# logs
|
||||||
log_dir = os.path.join(os.environ['AIL_HOME'], 'logs')
|
log_dir = os.path.join(os.environ['AIL_HOME'], 'logs')
|
||||||
if not os.path.isdir(log_dir):
|
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')
|
# log_filename = os.path.join(log_dir, 'flask_server.logs')
|
||||||
# logger = logging.getLogger()
|
# logger = logging.getLogger()
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
<div class="card my-3">
|
<div class="card my-3">
|
||||||
<div class="card-header bg-dark text-white">
|
<div class="card-header bg-dark text-white">
|
||||||
<h5 class="card-title">Edit a Tracker</h5>
|
<h5 class="card-title">{%if dict_tracker%}Edit a{%else%}Create a new{%endif%} Tracker</h5>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,6 @@
|
||||||
<th>Tracker</th>
|
<th>Tracker</th>
|
||||||
<th>First seen</th>
|
<th>First seen</th>
|
||||||
<th>Last seen</th>
|
<th>Last seen</th>
|
||||||
<th>Webhook URL</th>
|
|
||||||
<th>Email notification</th>
|
<th>Email notification</th>
|
||||||
<th>sparkline</th>
|
<th>sparkline</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -99,11 +98,6 @@
|
||||||
{{ dict_uuid['last_seen'][6:8] }}
|
{{ dict_uuid['last_seen'][6:8] }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
{% if dict_uuid['webhook'] %}
|
|
||||||
{{ dict_uuid['webhook'] }}
|
|
||||||
{% endif %}
|
|
||||||
</td>
|
|
||||||
<td>
|
<td>
|
||||||
{% for mail in dict_uuid['mails'] %}
|
{% for mail in dict_uuid['mails'] %}
|
||||||
{{ mail }}<br>
|
{{ mail }}<br>
|
||||||
|
@ -129,7 +123,6 @@
|
||||||
<th>Tracker</th>
|
<th>Tracker</th>
|
||||||
<th>First seen</th>
|
<th>First seen</th>
|
||||||
<th>Last seen</th>
|
<th>Last seen</th>
|
||||||
<th>Webhook URL</th>
|
|
||||||
<th>Email notification</th>
|
<th>Email notification</th>
|
||||||
<th>sparkline</th>
|
<th>sparkline</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -170,11 +163,7 @@
|
||||||
{{ dict_uuid['last_seen'][6:8] }}
|
{{ dict_uuid['last_seen'][6:8] }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
{% if dict_uuid['webhook'] %}
|
|
||||||
{{ dict_uuid['webhook'] }}
|
|
||||||
{% endif %}
|
|
||||||
</td>
|
|
||||||
<td>
|
<td>
|
||||||
{% for mail in dict_uuid['mails'] %}
|
{% for mail in dict_uuid['mails'] %}
|
||||||
{{ mail }}<br>
|
{{ mail }}<br>
|
||||||
|
|
Loading…
Reference in New Issue