def report_conflicts(self):
"""Write a date conflicts report in a file."""
with open("conflict_stats.txt", 'w') as statsfile:
- statsfile.write("Total date conflicts to be corrected (total1) and total messages without received headers (total2):\n\n")
owner_total_conflicts = {}
owner_total_missing = {}
for user in self.data: