add success template

This commit is contained in:
Lynne Megido 2019-09-09 22:09:23 +10:00
parent eb3fb77c18
commit 9d6615b579
2 changed files with 6 additions and 1 deletions

View File

@ -122,6 +122,6 @@ def make_post(handle):
post = re.sub(r"@(\w+)@([\w.]+)", r"@{}\1".format(zws), post)
print(post)
# client.status_post(post, visibility = bot['post_privacy'], spoiler_text = bot['content_warning'])
client.status_post(post, visibility = bot['post_privacy'], spoiler_text = bot['content_warning'])
# TODO: update date of last post

5
templates/success.html Normal file
View File

@ -0,0 +1,5 @@
{% if success != None %}
<div class="success">
<i class="fas fa-check-circle"></i> Information updated succesfully.
</div>
{% endif %}