Put environment URL in feedback tickets

So that:
- we know what environment a request has been sent from
This commit is contained in:
Chris Hill-Scott
2016-04-26 16:29:23 +01:00
parent 456291d630
commit a65466327c
2 changed files with 7 additions and 5 deletions

View File

@@ -16,10 +16,12 @@ def feedback():
'person_email': current_app.config.get('DESKPRO_PERSON_EMAIL'),
'department_id': current_app.config.get('DESKPRO_TEAM_ID'),
'subject': 'Notify feedback',
'message': '{}\n{}\n{}'.format(
'message': 'Environment: {}\n\n{}\n{}\n{}'.format(
url_for('main.index', _external=True),
form.name.data,
form.email_address.data,
form.feedback.data)
form.feedback.data
)
}
headers = {
"X-DeskPRO-API-Key": current_app.config.get('DESKPRO_API_KEY'),