mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
formatting
This commit is contained in:
parent
cdc6f2e1c4
commit
10642d9ad1
1 changed files with 6 additions and 4 deletions
|
@ -80,8 +80,8 @@ def create_project():
|
||||||
|
|
||||||
return render_template("create_project.html", form=form)
|
return render_template("create_project.html", form=form)
|
||||||
|
|
||||||
@app.route("/quit")
|
@app.route("/exit")
|
||||||
def quit():
|
def exit():
|
||||||
# delete the session
|
# delete the session
|
||||||
session.clear()
|
session.clear()
|
||||||
return redirect(url_for("home"))
|
return redirect(url_for("home"))
|
||||||
|
@ -99,10 +99,12 @@ def invite(project):
|
||||||
message_body = render_template("invitation_mail",
|
message_body = render_template("invitation_mail",
|
||||||
email=project.contact_email, project=project)
|
email=project.contact_email, project=project)
|
||||||
|
|
||||||
message_title = "You have been invited to share your expenses for %s" % project.name
|
message_title = "You have been invited to share your"\
|
||||||
|
+ " expenses for %s" % project.name
|
||||||
msg = Message(message_title,
|
msg = Message(message_title,
|
||||||
body=message_body,
|
body=message_body,
|
||||||
recipients=[email.strip() for email in form.emails.data.split(",")])
|
recipients=[email.strip()
|
||||||
|
for email in form.emails.data.split(",")])
|
||||||
mail.send(msg)
|
mail.send(msg)
|
||||||
return redirect(url_for("list_bills", project_id=project.id))
|
return redirect(url_for("list_bills", project_id=project.id))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue