From 8b309cd3bd3a2c228f640c49adb8a8a92fc2b72f Mon Sep 17 00:00:00 2001 From: Michael Woolweaver Date: Mon, 15 Apr 2019 22:51:43 -0500 Subject: [PATCH] Update pihole_tweeter.py --- pihole_tweeter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pihole_tweeter.py b/pihole_tweeter.py index a5221a7..3baa473 100644 --- a/pihole_tweeter.py +++ b/pihole_tweeter.py @@ -62,10 +62,10 @@ def get_pihole_data(): def construct_tweet(data): today = datetime.today().strftime("%m.%d.%Y") tweet = 'Pi-hole Stats for {date}:\n'.format(date=today) - tweet += 'Total Ads Blocked: ' + str(['ads_blocked_today']) - tweet += ' (' + str(['ads_percentage_today']) + ' %)\n' - tweet += 'Total DNS Queries: ' + str(['dns_queries_today']) + '\n' - tweet += 'Domains on Blacklist: ' + str(['domains_being_blocked']) + tweet += 'Total Ads Blocked: ' + str(data(['ads_blocked_today'])) + tweet += ' (' + str(data(['ads_percentage_today'])) + ' %)\n' + tweet += 'Total DNS Queries: ' + str(data(['dns_queries_today'])) + '\n' + tweet += 'Domains on Blacklist: ' + str(data(['domains_being_blocked'])) return tweet