From 9933141e70c5b3d4442a3e38d2bd374471e237cc Mon Sep 17 00:00:00 2001 From: Michael Woolweaver Date: Mon, 15 Apr 2019 23:18:19 -0500 Subject: [PATCH] Update pihole_tweeter.py --- pihole_tweeter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pihole_tweeter.py b/pihole_tweeter.py index c0fdf36..ff2b40f 100644 --- a/pihole_tweeter.py +++ b/pihole_tweeter.py @@ -65,12 +65,13 @@ 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) + today = datetime.today().strftime("%m/%d/%Y") + tweet += 'Pi-hole statistics for {date}:\n'.format(date=today) tweet += 'Ads Blocked: ' + str(comma_value(data['ads_blocked_today'])) tweet += ' (' + str(round(data['ads_percentage_today'], 2)).replace('.', ',') + ' %)\n' tweet += 'Total DNS Queries: ' + str(comma_value(data['dns_queries_today'])) + '\n' tweet += 'Domains on Blocklist: ' + str(comma_value(data['domains_being_blocked'])) + tweet += '#Sky-hole: The @The_Pi_Hole on @GoogleCompute.' return tweet