fix: hide MTG rows without valid clicks
This commit is contained in:
@@ -339,6 +339,9 @@ def parse_mtg1013(source: Path, payload: dict[str, Any]) -> dict[str, Any]:
|
||||
}
|
||||
)
|
||||
|
||||
# Rows without a valid click are intentionally excluded from the MTG module,
|
||||
# including its summaries, linked filters, pagination, and CSV export.
|
||||
records = [row for row in records if row["valid_clicks"] > 0]
|
||||
records.sort(key=lambda row: (-row["cost"], -row["valid_clicks"], row["adpingid"]))
|
||||
total_clicks = sum(row["valid_clicks"] for row in records)
|
||||
total_installs = sum(row["installs"] for row in records)
|
||||
|
||||
Reference in New Issue
Block a user