change domen
This commit is contained in:
@@ -56,8 +56,8 @@ async def get_spending_analytics(
|
||||
filtered = [
|
||||
p
|
||||
for p in placements
|
||||
if (not input.date_from or p.placement_date >= input.date_from)
|
||||
and (not input.date_to or p.placement_date <= input.date_to)
|
||||
if (not input.date_from or p.wanted_placement_date >= input.date_from)
|
||||
and (not input.date_to or p.wanted_placement_date <= input.date_to)
|
||||
]
|
||||
|
||||
total_cost = 0.0
|
||||
@@ -82,7 +82,7 @@ async def get_spending_analytics(
|
||||
period_data: dict[str, PeriodData] = defaultdict(PeriodData)
|
||||
|
||||
for p in filtered:
|
||||
period = _format_period(p.placement_date, input.grouping)
|
||||
period = _format_period(p.wanted_placement_date, input.grouping)
|
||||
pd = period_data[period]
|
||||
|
||||
if p.cost is not None:
|
||||
|
||||
Reference in New Issue
Block a user