Fixed oversight

This commit is contained in:
Jonas Linter
2025-10-21 18:43:25 +02:00
parent 17020be715
commit aee467c672

View File

@@ -512,7 +512,7 @@ class ScheduledInsightsGrabber:
# Compute appropriate timestamp based on date_preset and account timezone # Compute appropriate timestamp based on date_preset and account timezone
date_start_str = insight_dict.get("date_start") date_start_str = insight_dict.get("date_start")
timestamp = self._compute_timestamp(date_preset, date_start_str, account_timezone) timestamp = self._compute_timestamp(date_start_str, account_timezone)
await self.db.insert_campaign_insights( await self.db.insert_campaign_insights(
time=timestamp, time=timestamp,
@@ -582,7 +582,7 @@ class ScheduledInsightsGrabber:
# Compute appropriate timestamp based on date_preset and account timezone # Compute appropriate timestamp based on date_preset and account timezone
date_start_str = insight_dict.get("date_start") date_start_str = insight_dict.get("date_start")
timestamp = self._compute_timestamp(date_preset, date_start_str, account_timezone) timestamp = self._compute_timestamp(date_start_str, account_timezone)
await self.db.insert_adset_insights( await self.db.insert_adset_insights(
time=timestamp, time=timestamp,