TODO updated with Berni & Minor fix in send_email.py

This commit is contained in:
Martin Mosbeck
2016-05-07 18:08:02 +02:00
parent 2f4ddc84a5
commit 3948404fc1
2 changed files with 2 additions and 6 deletions

View File

@@ -19,13 +19,11 @@ This is the todo file:
* Improve design * Improve design
## WEB-INTERFACE ## WEB-INTERFACE
* Improve design * Improve design (???)
## BARON ## BARON
* Implement: Write a function that calculates money owed (per product?) for a user
* Fix: Show money owed in the table containing the users * Fix: Show money owed in the table containing the users
* Implement: Generate a file containing users & money owed * Implement: Generate a file containing users & money owed
* Implement: The possibility to automatically send mails to users
## USERS ## USERS
* Implement: Show them a list of their consumptions * 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 * Implement: Give them a option to black-out themselves
## PLOTS ## PLOTS
* Implement: Generate plots in a seperate thread (may take some time with many consumptions)
* Implement: Regerate plots if missing for some reason * Implement: Regerate plots if missing for some reason
* Fix: Obey isshown flags for users and products in the plots

View File

@@ -34,7 +34,7 @@ def send_emails(body, subject, users):
FROM = 'bier1baroness@gmail.com' FROM = 'bier1baroness@gmail.com'
for user in users: for user in users:
debt = get_debt(user.name) debt = database.get_debt(user.name)
subject_parsed = parse_email(subject, user, debt) subject_parsed = parse_email(subject, user, debt)
body_parsed = parse_email(body, user, debt) body_parsed = parse_email(body, user, debt)
send_email(user.email, subject_parsed, body_parsed) send_email(user.email, subject_parsed, body_parsed)