Skip to content

Commit

Permalink
fix(batch-exports): Add type checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Oct 28, 2024
1 parent 3247f38 commit 9469642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posthog/batch_exports/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@ def workflow_id(self) -> str:
end_at = self.end_at and self.end_at.isoformat()
start_at = self.start_at and self.start_at.isoformat()

if end_at.endswith("+00:00"):
if isinstance(end_at, str) and end_at.endswith("+00:00"):
end_at = end_at.replace("+00:00", "Z")

if start_at.endswith("+00:00"):
if isinstance(start_at, str) and start_at.endswith("+00:00"):
start_at = start_at.replace("+00:00", "Z")

return f"{self.batch_export.id}-Backfill-{start_at}-{end_at}"

0 comments on commit 9469642

Please sign in to comment.