From 3c27fc1afa76f97d969b08f6360e71296f6a3132 Mon Sep 17 00:00:00 2001 From: Michael Woolweaver Date: Mon, 15 Apr 2019 22:48:47 -0500 Subject: [PATCH] maybe it works now --- pihole_tweeter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pihole_tweeter.py b/pihole_tweeter.py index 37f3c45..84950ac 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: ' + (data['ads_blocked_today']) - tweet += ' (' + (data['ads_percentage_today']) + ' %)\n' - tweet += 'Total DNS Queries: ' + (data['dns_queries_today']) + '\n' - tweet += 'Domains on Blacklist: ' + (data['domains_being_blocked']) + tweet += 'Total Ads Blocked: ' + ['ads_blocked_today'] + tweet += ' (' + ['ads_percentage_today'] + ' %)\n' + tweet += 'Total DNS Queries: ' + ['dns_queries_today'] + '\n' + tweet += 'Domains on Blacklist: ' + ['domains_being_blocked'] return tweet