From 3948404fc1b7321d51deea4e658aa155aaf8bd40 Mon Sep 17 00:00:00 2001 From: Martin Mosbeck Date: Sat, 7 May 2016 18:08:02 +0200 Subject: [PATCH] TODO updated with Berni & Minor fix in send_email.py --- TODO.md | 6 +----- app/send_email.py | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/TODO.md b/TODO.md index c3a9bf9..6e4710c 100644 --- a/TODO.md +++ b/TODO.md @@ -19,13 +19,11 @@ This is the todo file: * Improve design ## WEB-INTERFACE -* Improve design +* Improve design (???) ## BARON -* Implement: Write a function that calculates money owed (per product?) for a user * Fix: Show money owed in the table containing the users * Implement: Generate a file containing users & money owed -* Implement: The possibility to automatically send mails to users ## USERS * Implement: Show them a list of their consumptions @@ -33,6 +31,4 @@ This is the todo file: * Implement: Give them a option to black-out themselves ## PLOTS -* Implement: Generate plots in a seperate thread (may take some time with many consumptions) * Implement: Regerate plots if missing for some reason -* Fix: Obey isshown flags for users and products in the plots diff --git a/app/send_email.py b/app/send_email.py index fa1ae48..d723524 100644 --- a/app/send_email.py +++ b/app/send_email.py @@ -34,7 +34,7 @@ def send_emails(body, subject, users): FROM = 'bier1baroness@gmail.com' for user in users: - debt = get_debt(user.name) + debt = database.get_debt(user.name) subject_parsed = parse_email(subject, user, debt) body_parsed = parse_email(body, user, debt) send_email(user.email, subject_parsed, body_parsed)