Fixed oversight
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user