diff --git a/pihole_tweeter.py b/pihole_tweeter.py index 95e4e73..a5221a7 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(['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']) return tweet