add fail_reason to db and make adjustment to html table

This commit is contained in:
lza_menace 2020-10-17 02:06:33 -07:00
parent 2faf28808f
commit a6d0405737
2 changed files with 3 additions and 0 deletions

View File

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

View File

@ -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') }}">