reformat the support process message
@@ -12,7 +12,9 @@ def process_update(client, note, invitation, existing_note):
if existing_note is None:
admin_subject = "A request for service has been submitted by {venue_name}".format(venue_name=note.content['Abbreviated Venue Name'])
admin_message = "A request for service has been submitted by {venue_name}. Check it here: {baseurl}/forum?id={forum} \n".format(venue_name=note.content['Abbreviated Venue Name'], baseurl=baseurl, forum=note.forum)
- admin_message += json.dumps(note.content, indent=2)
+
+ for key, value in note.content.items():
+ admin_message += "\n{k}: {v}".format(k=key, v=value)
client.post_message(subject=admin_subject, message=admin_message, recipients=[SUPPORT_GROUP])
