From c6f4ccd10b0ea43ef3e0b8d5579117fc4d27b417 Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Wed, 16 Dec 2015 00:28:23 -0500 Subject: [PATCH] Add author_email to Wiki.get_history results --- realms/modules/wiki/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/realms/modules/wiki/models.py b/realms/modules/wiki/models.py index d50d755..6d41c53 100644 --- a/realms/modules/wiki/models.py +++ b/realms/modules/wiki/models.py @@ -289,9 +289,10 @@ class Wiki(HookMixin): change_type = change.type elif change.new.path == file_path: change_type = change.type - author_name, author_email = entry.commit.author.split('<') + author_name, author_email = entry.commit.author.rstrip('>').split('<') versions.append(dict( author=author_name.strip(), + author_email=author_email, time=entry.commit.author_time, message=entry.commit.message, sha=entry.commit.id,