Add author_email to Wiki.get_history results

This commit is contained in:
Chase Sterling 2015-12-16 00:28:23 -05:00
rodzic dd5cbf5910
commit c6f4ccd10b
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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,