maybe it works now
This commit is contained in:
parent
d627522c61
commit
3c27fc1afa
@ -62,10 +62,10 @@ def get_pihole_data():
|
|||||||
def construct_tweet(data):
|
def construct_tweet(data):
|
||||||
today = datetime.today().strftime("%m.%d.%Y")
|
today = datetime.today().strftime("%m.%d.%Y")
|
||||||
tweet = 'Pi-hole Stats 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 += 'Total Ads Blocked: ' + ['ads_blocked_today']
|
||||||
tweet += ' (' + (data['ads_percentage_today']) + ' %)\n'
|
tweet += ' (' + ['ads_percentage_today'] + ' %)\n'
|
||||||
tweet += 'Total DNS Queries: ' + (data['dns_queries_today']) + '\n'
|
tweet += 'Total DNS Queries: ' + ['dns_queries_today'] + '\n'
|
||||||
tweet += 'Domains on Blacklist: ' + (data['domains_being_blocked'])
|
tweet += 'Domains on Blacklist: ' + ['domains_being_blocked']
|
||||||
return tweet
|
return tweet
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user