Update pihole_tweeter.py

This commit is contained in:
Michael Woolweaver 2019-04-15 23:11:21 -05:00 committed by GitHub
parent f5f0a0644f
commit afc90ffaa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ def get_pihole_data():
def construct_tweet(data):
today = datetime.today().strftime("%d.%m.%Y")
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'