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 d6c7402..e78252b 100644 --- a/app/send_email.py +++ b/app/send_email.py @@ -35,7 +35,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)