Update pihole_tweeter.py

This commit is contained in:
Michael Woolweaver 2019-04-15 22:54:06 -05:00 committed by GitHub
parent 3c8b174491
commit 6bed8dd8b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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