make .md match .py

This commit is contained in:
2017-05-24 15:37:11 -04:00
parent 8f50b4adae
commit 15d8ebc922

View File

@@ -8,7 +8,9 @@ twilio_client = TwilioClient(os.getenv('TWILIO_SID'), os.getenv('TWILIO_TOKEN'))
def send_summary(transactions: List[dict]) -> None:
total_spent = sum(transaction['amount'] for transaction in transactions)
message = f'You spent ${total_spent} yesterday. 💸'
twilio_client.api.account.messages.create(to=os.getenv('MY_CELL'), from_=os.getenv('MY_TWILIO_NUM'), body=message)
if __name__ == "__main__":
send_summary(get_yesterdays())