fix
This commit is contained in:
@@ -132,14 +132,15 @@ async def get_overview_analytics(
|
|||||||
|
|
||||||
for placement_post in current_placements:
|
for placement_post in current_placements:
|
||||||
placement_day = placement_post.wanted_placement_date.date()
|
placement_day = placement_post.wanted_placement_date.date()
|
||||||
project_meta[placement_post.project_id] = placement_post.project
|
placement = placement_post.placement
|
||||||
|
if placement and placement.project:
|
||||||
|
project_meta[placement_post.project_id] = placement.project
|
||||||
|
|
||||||
cost_value = placement_post.cost or 0.0
|
cost_value = placement_post.cost or 0.0
|
||||||
cost_per_day[placement_day] += cost_value
|
cost_per_day[placement_day] += cost_value
|
||||||
project_spending_map[placement_post.project_id] += cost_value
|
project_spending_map[placement_post.project_id] += cost_value
|
||||||
subs = subs_per_placement_current.get(placement_post.id, 0)
|
subs = subs_per_placement_current.get(placement_post.id, 0)
|
||||||
|
|
||||||
placement = placement_post.placement
|
|
||||||
if placement:
|
if placement:
|
||||||
channel_id = placement.channel_id
|
channel_id = placement.channel_id
|
||||||
if channel_id not in channel_stats:
|
if channel_id not in channel_stats:
|
||||||
|
|||||||
Reference in New Issue
Block a user