Only send enum names

This commit is contained in:
Adrià Casajús 2022-04-12 09:34:05 +02:00
parent f333bb00c5
commit 0f91effce9
No known key found for this signature in database
GPG Key ID: F0033226A5AFC9B9
1 changed files with 3 additions and 3 deletions

View File

@ -71,9 +71,9 @@ class SpamdResult:
def event_data(self) -> Dict:
return {
"header": "present",
"dmarc": self.dmarc,
"spf": self.spf,
"phase": self.phase,
"dmarc": self.dmarc.name,
"spf": self.spf.name,
"phase": self.phase.name,
}
@classmethod