From 9d6615b5796c3808aabb74c4f0974caa7d7d8a69 Mon Sep 17 00:00:00 2001 From: Lynne Date: Mon, 9 Sep 2019 22:09:23 +1000 Subject: [PATCH] add success template --- functions.py | 2 +- templates/success.html | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 templates/success.html diff --git a/functions.py b/functions.py index 5649861..b545a00 100644 --- a/functions.py +++ b/functions.py @@ -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 diff --git a/templates/success.html b/templates/success.html new file mode 100644 index 0000000..57a7739 --- /dev/null +++ b/templates/success.html @@ -0,0 +1,5 @@ +{% if success != None %} +
+ Information updated succesfully. +
+{% endif %}