chore: services code refactor

This commit is contained in:
ITQ
2025-07-22 21:56:18 +03:00
parent f5c9b69b45
commit 8549700752
7 changed files with 14 additions and 10 deletions
+2 -2
View File
@@ -256,10 +256,10 @@ class Campaign(BaseModel):
(
Decimal(str(clicks_count))
/ Decimal(str(impressions_count))
* Decimal("100")
* Decimal(100)
)
if impressions_count > 0
else Decimal("0")
else Decimal(0)
)
spent_impressions = Decimal(str(impressions.get("spent", 0) or 0))
spent_clicks = Decimal(str(clicks.get("spent", 0) or 0))