Translated output to english

This commit is contained in:
Michael Woolweaver 2019-04-15 22:41:39 -05:00 committed by GitHub
parent 8cdc67ba52
commit d627522c61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -61,9 +61,9 @@ def get_pihole_data():
def construct_tweet(data):
today = datetime.today().strftime("%m.%d.%Y")
tweet = 'Pi-hole statistics for {date}:\n'.format(date=today)
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 += ' (' + (data['ads_percentage_today']) + ' %)\n'
tweet += 'Total DNS Queries: ' + (data['dns_queries_today']) + '\n'
tweet += 'Domains on Blacklist: ' + (data['domains_being_blocked'])
return tweet