This commit is contained in:
Son NK 2020-04-04 19:11:10 +02:00
parent eab45beef2
commit 1c5d6e3299
1 changed files with 7 additions and 7 deletions

View File

@ -74,15 +74,15 @@ def get_alias_log(alias: Alias, page_id=0):
.offset(page_id * PAGE_LIMIT) .offset(page_id * PAGE_LIMIT)
) )
for fe, fel in q: for contact, email_log in q:
al = AliasLog( al = AliasLog(
website_email=fe.website_email, website_email=contact.website_email,
website_from=fe.website_from, website_from=contact.website_from,
alias=alias.email, alias=alias.email,
when=fel.created_at, when=email_log.created_at,
is_reply=fel.is_reply, is_reply=email_log.is_reply,
blocked=fel.blocked, blocked=email_log.blocked,
bounced=fel.bounced, bounced=email_log.bounced,
mailbox=mailbox, mailbox=mailbox,
) )
logs.append(al) logs.append(al)