add fail_reason to db and make adjustment to html table

pull/1/head
lza_menace 4 years ago
parent 2faf28808f
commit a6d0405737

@ -17,6 +17,7 @@ class Node(Model):
datetime_entered = DateTimeField(default=datetime.now)
datetime_checked = DateTimeField(default=None, null=True)
datetime_failed = DateTimeField(default=None, null=True)
fail_reason = CharField(null=True)
class Meta:
database = db

@ -8,6 +8,7 @@
<h3>Add Node</h3>
</div>
{% if nodes %}
<table>
<tr>
<th>URL</th>
@ -28,6 +29,7 @@
</tr>
{% endfor %}
</table>
{% endif %}
<form method="POST" action="{{ url_for('add') }}">

Loading…
Cancel
Save