Update pihole_tweeter.py
This commit is contained in:
parent
d6f59f0d8d
commit
8b309cd3bd
@ -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: ' + str(['ads_blocked_today'])
|
tweet += 'Total Ads Blocked: ' + str(data(['ads_blocked_today']))
|
||||||
tweet += ' (' + str(['ads_percentage_today']) + ' %)\n'
|
tweet += ' (' + str(data(['ads_percentage_today'])) + ' %)\n'
|
||||||
tweet += 'Total DNS Queries: ' + str(['dns_queries_today']) + '\n'
|
tweet += 'Total DNS Queries: ' + str(data(['dns_queries_today'])) + '\n'
|
||||||
tweet += 'Domains on Blacklist: ' + str(['domains_being_blocked'])
|
tweet += 'Domains on Blacklist: ' + str(data(['domains_being_blocked']))
|
||||||
return tweet
|
return tweet
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user