Fix webhook

pull/586/head
TonyJabbour 2021-09-29 16:17:08 +02:00
parent ecc16d1004
commit 52e422604a
4 changed files with 5 additions and 16 deletions

View File

@ -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()

View File

@ -31,7 +31,7 @@
<div class="card my-3">
<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 class="card-body">

View File

@ -58,7 +58,6 @@
<th>Tracker</th>
<th>First seen</th>
<th>Last seen</th>
<th>Webhook URL</th>
<th>Email notification</th>
<th>sparkline</th>
</tr>
@ -99,11 +98,6 @@
{{ dict_uuid['last_seen'][6:8] }}
{% endif %}
</td>
<td>
{% if dict_uuid['webhook'] %}
{{ dict_uuid['webhook'] }}
{% endif %}
</td>
<td>
{% for mail in dict_uuid['mails'] %}
{{ mail }}<br>
@ -129,7 +123,6 @@
<th>Tracker</th>
<th>First seen</th>
<th>Last seen</th>
<th>Webhook URL</th>
<th>Email notification</th>
<th>sparkline</th>
</tr>
@ -170,11 +163,7 @@
{{ dict_uuid['last_seen'][6:8] }}
{% endif %}
</td>
<td>
{% if dict_uuid['webhook'] %}
{{ dict_uuid['webhook'] }}
{% endif %}
</td>
<td>
{% for mail in dict_uuid['mails'] %}
{{ mail }}<br>