Skip to content

Commit

Permalink
Add created_at to newsletter exports
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhigley committed Nov 12, 2024
1 parent 3cfe3cf commit aeffa81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/poprox_storage/repositories/newsletters.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def extract_and_flatten(newsletters: list[Newsletter]) -> list[dict]:
record["newsletter_id"] = str(newsletter.newsletter_id)
record["article_id"] = str(impression.article.article_id)
record["position"] = impression.position
record["created_at"] = newsletter.created_at
records.append(record)
impression_records.extend(records)
return impression_records

0 comments on commit aeffa81

Please sign in to comment.