From f14cb36896f2a65d8a1308cdc87734429622a229 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 14 May 2023 10:37:14 +0000 Subject: [PATCH] Bug fix --- matcher/mail.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/matcher/mail.py b/matcher/mail.py index 23dd0ac..cc5fd91 100644 --- a/matcher/mail.py +++ b/matcher/mail.py @@ -1,10 +1,11 @@ -from flask import current_app, g, request, has_request_context +import smtplib +import sys +import traceback from email.mime.text import MIMEText from email.utils import formatdate, make_msgid from pprint import pformat -import smtplib -import traceback -import sys + +from flask import current_app, g, has_request_context, request def send_mail(subject, body, config=None): @@ -71,7 +72,7 @@ def open_changeset_error(session_id, changeset, r): username = g.user.username body = f""" user: {username} -page: {url} +page: {r.url} message user: https://www.openstreetmap.org/message/new/{username}