mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +00:00
Fix webhook
This commit is contained in:
parent
ecc16d1004
commit
52e422604a
4 changed files with 5 additions and 16 deletions
|
@ -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()
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
|
|
@ -111,8 +111,8 @@
|
|||
</td>
|
||||
<td>
|
||||
{% for mail in tracker_metadata['mails'] %}
|
||||
{{ mail }}<br>
|
||||
{% endfor %}
|
||||
{{ mail }}<br>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue