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_entered = DateTimeField(default=datetime.now)
datetime_checked = DateTimeField(default=None, null=True) datetime_checked = DateTimeField(default=None, null=True)
datetime_failed = DateTimeField(default=None, null=True) datetime_failed = DateTimeField(default=None, null=True)
fail_reason = CharField(null=True)
class Meta: class Meta:
database = db database = db

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

Loading…
Cancel
Save